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
Post a Comment