Code is not running on .click of hyperlink
- by coffeeaddict
Code is not running on .click when I have this:
$(".cancel").click(function() {
alert("got here");
$(this).closest(":dialog").dialog("close");
});
<a class="cancel" href=""><img src="images/cancelButton.gif" border="0" /></a>
It's got to be something stupid, but I cannot see it.