Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Wednesday, July 6, 2016

Allow validation of hidden elements, override the ignore and set it to empty string

To allow validation of hidden elements, override the ignore and set it to empty string:
$("#form1").validate({
    ignore: "",
    rules: {
        something: {
            number:true,
            min:1,
            required:true
        }
    }
});
Check this out : http://stackoverflow.com/questions/7952181/jquery-validation-plugin-validating-hidden-inputs-and-not-visible


Friday, May 6, 2016

Caching a jquery ajax response in javascript/browser

Check this out : http://stackoverflow.com/questions/17104265/caching-a-jquery-ajax-response-in-javascript-browser