I am adding a tag at runtime using jquery.
<a id=add class=add href=#>Test</a>
I want to fire the click event of this tag, but it does not fire.
I have already tried
$('#add').bind('click', function(e) {
e.preventDefault();
alert('hello');
});
but nothing happens.
source
share