Skip to main content

Posts

Showing posts with the label form-validation

Can you bind two events to a handler with jQuery?

(By the way, a quick experiment indicates that the answer is "yes", but it might be "it doesn't work in every browser".) I am using a validator plugin that binds something to the submit event of a form. But I want to perform additional validation. It would seem that I can simply bind my additional validation to the submit event. HOWEVER, I worry that that might not work on every browser. Should I expect this to work or will I need to write more complex code?