I am using Jquery ui accordion , in that i have a text box as a accordion header , now when i am trying
to type a space in text box accordion change and changestart event fire so how would i prevent this thing while typing space in a input box
I am using Jquery ui accordion , in that i have a text box
Share
use
within a
keydownorkeypressorkeyupevent handler. You can check thekeyCodeor even better the value ofwhichfrom the event object there and execute both functions from above.Alternativly, you can just
return false;which actually will trigger the same functions for you.Example: