roddic Posted April 18, 2008 Share Posted April 18, 2008 hello every body , i have two text input field in a label i want to call a javascript function in onblur event of those two input field.i did that but failed :'( so please any suggestion will be appreciated. thanks in advance Roddic Quote Link to comment Share on other sites More sharing options...
haku Posted April 18, 2008 Share Posted April 18, 2008 Set the onblur in the inputs. Quote Link to comment Share on other sites More sharing options...
roddic Posted April 18, 2008 Author Share Posted April 18, 2008 i placed the onblur event into two input box then it works fine but whenever i place that onblur event in label tag it do not works actually what my motive is to determine wheather the cursor is present any of the input box and if that not so then i can call another function Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 19, 2008 Share Posted April 19, 2008 you should not have to input fields inside ONE label... the onblur event of the label element will never be triggered as it is not a control that can take focus. I would suggest that you use some unobtrusive javascript to detect if either of the two controls in question have lost focus - if so call a function... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.