virt2/assets/vendor_components/jquery-validation-1.17.0/demo/requirejs/app.js

9 lines
236 B
JavaScript
Raw Normal View History

require(["jquery", "../../dist/jquery.validate"], function($) {
$.validator.setDefaults({
submitHandler: function() { alert("submitted!"); }
});
// validate the comment form when it is submitted
$("#commentForm").validate();
});