This may be the easy answer -
In my JS, I replaced the JS confirmation function with my own. Which basically and just looks like this:
function confirm(i){ var options = '<br/><br/><input class="button1" value="Yes" type="button" onclick="return true"> <input class="button1" value="No" type="button" onclick="return false">'; $('#text').html(i+options); $('#confirmDiv').fadeIn('fast'); }
Obviously, return true / false does not work, otherwise I would not ask!
In another function I have (So, you get the image):
var con = confirm("Are you sure you'd like to remove this course?"); if(!con){return;}
How can I get confirmation to return a value directly? I would suggest that it returns {this.value} or so?
Thanks!
javascript
MKN Web Solutions
source share