Is there any way to use the onclick html attribute to call more than one JavaScript function?
onclick
Sure, simply bind multiple listeners to it.
Short cutting with jQuery
$("#id").bind("click", function() { alert("Event 1"); }); $(".foo").bind("click", function() { alert("Foo class"); });
Click