Search code examples
javascripthtmlonblur

How can i use two on blur events for one textbox?


So i have 2 on blur events that check for different things, but the browser only recognizes the first one and disregard the second, how can i fix that?

<input type="text" name="first" onblur="validator()"; onblur="alpha(this)"; />

Thats what i have tried so far. I have also tried without the semicolons but no luck.


Solution

  • You can use like this,

    onblur="validator(); alpha(this);"