Solve first, then blog!
$('#foo').onclick = "" doesn't seem to work
Query:
$('#foo').click(function() { alert('foo'); });
Or if you don't want it to follow the link href:
$('#foo').click(function() { alert('foo'); return false; });
No comments:
Post a Comment