jQuery form validate not working
问题 I've spent hours on this and I have no idea why this jquery validate() doesn't work. I finally broke it down to minimum and it still doesn't work. This is the actuall code: <!DOCTYPE html> <html> <head> <script type="text/javascript" src="jquery-1.8.2.min.js"></script> <script type="text/javascript" src="jquery.validate.min.js"></script> <script> $(document).on("click", "#submit", function() { $("#form").validate({ rules: { input: { required: true} }, messages: { input: { required: "required"