saribe / eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.
http://saribe.github.io/eModal
271 stars 97 forks source link

eModal.prompt return value #100

Open kidsonk opened 2 years ago

kidsonk commented 2 years ago

Using eModal.prompt Am I being stupid?? I cannot see any way to get the value that is typed into the prompt box. it has no id so I don't know how to reference it. Any help very much appreciated. eModal.prompt(options) .then( function () { alert("?? PROMPT VALUE ???"); }, function () { alert(2); } );

kidsonk commented 2 years ago

My apologies to bother you again but I cannot find any reference to the text-box value in the document at http://saribe.github.io/eModal/#confirm Within the callback of eModal.prompt(options) .then(callback, callbackCancel); how do I get the value that was typed into the textbox?