jquery - vex confirm dialog, how can i manage the a href-event handling -
I am trying to use a modal script for a confirmation dialog if it is chosen to be canceled, href The incident should be canceled.
One of my href:
and my javascript:
$ ('a.confirm'). Click (function () {var page = $ (this) .attr ('relay'); vex.dialog.buttons.YES.text = 'cancel'; vex.dialog.buttons.NO.text = 'go forward '; Vex.dialog.confirm ({Message:' Do you know? ', Callback: function (value) {Cancel (value === incorrect) {// Load an href site} Other {// Cancel ; Return Return;}}})}});
Unfortunately after clicking on the confirmation link, a href site will be unfortunately loaded
thanks in advance.
The best way Thomas
Comments
Post a Comment