문제

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.

도움이 되었습니까?

해결책

You can use like this,

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

다른 팁

It is very simple. Just like this.

<input type="text" name="first" onblur="validator() ; alpha(this)"; />
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top