views:

8

answers:

0

I have tried to change the code on http://docs.jquery.com/Plugins/Validation/validate to adapt it to my need. However, I can see that a button click can`t launch the validate function. How can I launch the validate function upon clicking a button?

 <html>

$(document).ready(function() { $("#test").click(function() { $("#myform").validate({ errorPlacement: function(error, element) { error.appendTo(element.parent("td").next("td")); }, debug: true }) }); });