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

                                                                                                                                                                                               

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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