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