I have a custom jQuery plugin which binds a change event to a form element, in this case some input elements. The change event is used to
Events stack in jQuery. If you do:
<input type="button" value="Press me">
and:
$(":button").click(function() {
alert("click");
}).click(function() {
alert("click 2");
});
both will fire. So just bind another event to the relevant elements. It won't overwrite the first.
You can bind multiple handlers for the same event. Bind the second change as you normally would:
<input type="text" id="a" />
$("#a").change(function() { alert("1"); });
$("#a").change(function() { alert("2"); });
$("#a").change(); // alerts 1, then 2