jquery - e.preventdefault(); not working -


e.preventDefault (); is having a real problem.

This is my code

  $ ('# listSnapshot a'). Live ('click', function (e) {var url = $ (this) .attr ('href') + '# WebPartPQ2 .ms-listviewtable'; $ ('#SlistsSnapshot') .load (url); e .prerent Default ();}); Can anyone tell me what I'm doing wrong, I can see the work of the load function, but then redirect the clicked link on the page that I need to stop. is.  

I e.preventDefault (); Above the function, try not to take any advantage.

I had a similar problem, with e.preventDefault () something Will work on cases, but no errors were not shown on others, and gesture alert was not displayed by using try-catch . Adding e.stopImmediatePropagation () , if it helps anyone (big thanks for wcpro)


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -