Why doesn\'t this work?
The click event handler has to actually perform an action. Try this:
$(function () { $('.myButton').click(function () { alert('Hello!'); }); });