html - Using the <a> tag as a button without following its link -
I How can I prevent the browser from following the link while executing all the This: does not work, because, depending on the condition of that handler, it can prevent other I know that I can use a button to click on a button, but I call it AOP-path. & lt; A & gt; I use javascript to implement behavior.
click ()
events?
$ ("a.button"). Live ("click", function (event) {return false;});
.click ()
executors from executing. For some buttons this works as I want, but for some it prevents me from executing my other handlers.
jQuery provides a method that will stop the event's default action from the event. Following this, the link will be stopped by following the following code, but other operators also should not stop the promotion
$ ("a.button"). Click (function (event) {event.preventDefault ();});
Comments
Post a Comment