How to apply onblur event on dropdownlist?

18,508

Solution 1

you need to attach onblur event on the client side with some javascript

  $("mydropdown").blur(function(){

    // here goes your code
    }

Solution 2

Should work like this for instance:

http://jsfiddle.net/3Kfch/2/

What usualy is better is to trigger on select that can be done using jQuery librarfy to javascript. Here is an example.

how can select from drop down menu and call javascript function

Share:
18,508
Admin
Author by

Admin

Updated on June 22, 2022

Comments

  • Admin
    Admin about 2 years

    I want to fire some javascript function when my focus is off from dropdown list.