jquery - Nested Confirm Pop Ups not working -


i want display 1 more same confirmation pop on click of yes button not working, code :

$.confirm({     text: "are sure want delete ?"     confirm: function() {          $.confirm({             text: "we going delete ?"             confirm: function() {               },             cancel: function() {              }         });     },     cancel: function() {      } }); 

i'm using jquery-confirm.js this.

i need alternative implement functionality or solution problem.

as @pmandell said, configuration object invalid. need commas after each attribute of javascript object so:

$.confirm({     text: "are sure want delete ?",     confirm: function() {          $.confirm({             text: "we going delete ?",             confirm: function() {               },             cancel: function() {              }         });     },     cancel: function() {      }  }); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -