jquery confirm plugin is not working -
I'm trying to get out of jquery plugin using jquery1.8.3. But event handler ( alerts ) is not working for any button. Any clues? Try this way: I do not know why you have placed a button in the form of a parameter.
& lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; Button class = "confirmation" type = "button" & gt; Delete comment & lt; / Button & gt; & Lt; Link rel = "stylesheet" href = "http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" /> & Lt; Link rel = "stylesheet" href = "http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css" /> & Lt; Link rel = "stylesheet" href = "http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> & Lt; Script src = "http://code.jquery.com/jquery-1.9.1.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://code.jquery.com/ui/1.10.3/jquery-ui.js" & gt; & Lt; / Script & gt; & Lt; Script src = "jquery.confirm.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ {Document} .ready (function () {$ ("confirm"). Confirm ({text: "Are you sure to delete that comment?", Title: "Confirmation Required", Confirm: Function ( Button) {Alert ("foo")}, cancel: function (button) {warning ("bar"}}, confirm button: "yes i am", cancel button: "no", post: correct}) ;}); & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;
$ (document). Click (function () {$ ("confirm") (function () {$ .confirm ({'message': "Are you sure you want to delete it {'action': function () {warning () ;}}, 'No': {'verb': act () (comment) "," title ":" confirmation requirement ", 'button': {'yes': {verb}: function () {warning ( }}}});});});
Comments
Post a Comment