Interest in //Web //Win //Mobile //Database & //Life


Internet Explorer Object doesn’t support property or method ‘preventDefault’

I was working on a web page where I need to show or hide a div on button click using jquery, very simple code like below: $(function () { $(‘#btntest’).click(function () { event.preventDefault(); $(‘#testdiv’).toggle(); }); });   it was working fine in chorme browser, but in IE  I get the error like Object doesn’t support property…

Continue Reading