I am binding 3 events:
$("#form").bind('keyup change submit',function(event){ //do something alert("test alert"); });
In a form you can have text fields, dropdowns, checkboxes, etc....
From what I noticed, the "change" event does not get triggered with text fields until you click 'outside' of the text box.
So, I use the "keyup" event, which works great for me.
And the "submit" event is self explanatory. (I'm basically saving myself from doing multiple selectors by binding these events.)
And I may want to add more events later.
Here is my problem....
The popup alert will trigger 2x, when I make a change to a textbox. Not sure if that's because I am clicking the button on the popup that causes it, or if changing the value in the textbox can also trigger both the keyup & change events at the same time.
Either way, it's driving me nuts.
Any thoughts on improving this method, without having multiple selectors?