$('#myForm').submit(function() {
var c = confirm("Click OK to continue?");
return c; //you can just return c because it will be true or false
});
More Related Contents:
- Why is my jQuery :not() selector not working in CSS?
- Is $(document).ready necessary?
- Getting jQuery to recognise .change() in IE
- Get name of time zone
- Add comma to numbers every three digits
- Clone isn’t cloning select values
- How do I hide the tooltip on hover from the title tag when using FancyBox 2.0?
- Controlling the value of ‘this’ in a jQuery event
- Show/Hide Multiple Divs with Jquery
- jQuery AJAX calls in for loop [duplicate]
- Can I force jQuery.css(“backgroundColor”) returns on hexadecimal format?
- jQuery CSS – Write into the -tag
- Merging jQuery objects
- How to read userData in jqgrid?
- jQuery Focus fails on firefox
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery [closed]
- Limit Checkbox amount
- Redirecting after AJAX post in Django
- How to change height div on window resize?
- How do I pass a Dictionary as a parameter to an ActionResult method from jQuery/Ajax?
- jquery live event for added dom elements
- Fancybox2 – different content for tooltip and image title, both from title attribute?
- jQuery: Test if checkbox is NOT checked
- Manually set unobtrusive validation error on a textbox
- How to refresh the src of with jQuery?
- What’s faster for including scripts, using CDN (Google) or storing them locally in website’s root?
- Is there a difference between $().ready() and $(document).ready()
- Disable select options based on value *through the HTML only!*
- Load content with ajax in bootstrap modal
- Can jQuery selectors be used with DOM mutation observers?