Jump to content

[SOLVED] Calling Of Javascript Funvtion In Label Tag


roddic

How to call javascript function in onblur event in label tag  

1 member has voted

  1. 1. How to call javascript function in onblur event in label tag

    • javascript function on onblur event
      1
    • calling function on label tag
      0


Recommended Posts

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

                                                                                                                                                                                               

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 :-[

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...

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.