asp.net mvc - Lose Focus from Select Box with Jquery .change() event -


I am using a dropdown that shows several form fields after selecting something from the dropdown. I have forced the dropdown with jquery to detect a change, however, the box should focus 'Focus' before 'losing focus'. Any way to fix this?

  $ (select "Employee"). Change (work () {alert ('hi');}); It does not need to lose at least the focus with a traditional change. If you are using other forms of changing, i.e. keystroke, then you may consider compelling additional events for it.  

As long as you choose it in traditional sense, Em> (click on option) If you are using a different method, such as keyboard input , you will need to bind it to a proper event, such as keypress , keydown , etc.



Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -