jquery - Help with preventdefault -
I have a confirmation conversation that pop ("# step 0 next") after you hit a form wizard is. After pressing the button on the next step, it pops in. Now it is necessary that when you press the button on that step (step 1), then do not step when going to step 2. How can I stop the default action of the button unless the user clicks on "OK" in the conversation?
Live ('click', function (event) {event.preventDefault (); if ($ ("(": "RT #") (": check") & amp; Amp; $ ("ex. "). (': Check')) {confirmation of return ('foo'); // warning (" You have not selected any exchanges for which to get real-time market data. , You will only get real-time data for market metrics and will get data for a delay of 10 minutes for everything else. "Do you want to continue?"; $ (This). DA ('click');} });
confirmation ()
no default action is returned to it Instead, you need to stop the defaults after checking its return value. (I'm not completely following your question, but I agree that after you right click the user you want to continue ... no "stop default action"?)
Remove < Code> Event PreventDefault () where and now:
If (... long time statement ...) {If (Confirm ("Are you sure Are? Yedda Yeddah ")) {// user right clicked} and {// user canceled event event.preventDefault (); }}
Of course if you really want to stop the default action on whatever click was done, even if the user clicked, stop the default call, where it was . The code I provide will still tell you which button they click on the confirmation dialog.
Comments
Post a Comment