I have seen two ways to wire an event:
<input type="button" onclick=" printGrid() " value="Print" />
$(document).ready(function () {
$("#printGrid").click(function () {
printGrid();
});
});
Is there a difference or benefit for one over the other (besides the fact that the second is using JQuery)?
Note that this question is only about the wireup, not using inline javascript.