I have this jQuery code:
$('#SomeLink').onclick =
function(event)
{
alert('test');
};
And this is my markup:
<a href='#' id='SomeLink'>
Some Link
</a>
Obviously very simple. Here is the jsFiddle for the above code.
What is the onclick event not firing with a simple dialog? I’m new to jQuery, and I’m sure it’s a very simple thing but I can’t seem to figure it out.
Because that’s simply not how the jQuery API works. This is:
http://jsfiddle.net/mattball/VZtQn/