mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
ALL: Add plugin UMD wrapper, Closes #977
This commit is contained in:
9
demo/requirejs/app.js
Normal file
9
demo/requirejs/app.js
Normal file
@@ -0,0 +1,9 @@
|
||||
require(["jquery", "../../dist/jquery.validate"], function($) {
|
||||
|
||||
$.validator.setDefaults({
|
||||
submitHandler: function() { alert("submitted!"); }
|
||||
});
|
||||
|
||||
// validate the comment form when it is submitted
|
||||
$("#commentForm").validate();
|
||||
});
|
||||
Reference in New Issue
Block a user