html - Stuck with onblur event in IE8 -


enter image description here

when text entered in text field, ( shown in image )and if incorrect open 1 alert box on onblur event. working fine in browser except one, ie 8.

in ie 8 when typing wrong letters , directly clicking on datepicker icon it's not appear alert. means not executes onblur event in ie8.

note: here text field has type text, user can write anything.

means facing problem in onblur event in ie8 appreciated.

seems work in ie7 , up. thought.

<input type='text' id="id" name="name" maxlength="10" /> <input type='text' id="id2" name="name2" onblur="count(this);" maxlength="10" />  <script type="text/javascript">   function count(arg) {     arg.value = 'blue';     return arg.value;   }  // option   var t = document.getelementbyid("id");   t.onblur = function() { alert("blurring"); }; </script> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -