I have a jquery which has a click event, when any anchor tag is clicked.
$(document).ready(function ()
{
$("a").click(function (e)
{
e.preventDefault();
$('#myModal').load($(this).attr('href'));
$('#myModal').reveal();
});
});
I also have another anchor with the id ‘close’. I want he click event to run for when any of the anchor is clicked except for one which has ‘close’ id. The other anchor doesn’t have id.
How can i achieve that?
Thanks.
1 Answer