The following code works in all browsers but IE. I am using IE 9 and I have included the jquery library. Why is the .click(function() not working. The code inside the function is never ran.
newEntryRow.find('.dispmsg').click(function(){
alert("this code is not running");
showEntryById(1);
});
Any ideas why this might be happening and any ideas how to fix it. Thanks.
newEntryRow is a clone of li element, but like I said above it works in all other browsers.
Verify that “newEntryRow.find(‘.dispmsg’)” is returning an element. Is “.dispmsg” an a tag? iF it is you may need to call event.preventDefault(). Other than that you can try using .bind() instead.