Fix jquery Validation issue on setup

This commit is contained in:
Romain Neutron
2013-09-25 17:24:40 +02:00
parent 7a68ebbbb2
commit f20c4cdddf
174 changed files with 33796 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
$(function(){
$("#refreshimg").click(function(){
$.post('newsession.php');
$("#captchaimage").load('image_req.php');
return false;
});
$("#captchaform").validate({
rules: {
captcha: {
required: true,
remote: "process.php"
}
},
messages: {
captcha: "Correct captcha is required. Click the captcha to generate a new one"
},
submitHandler: function() {
alert("Correct captcha!");
},
success: function(label) {
label.addClass("valid").text("Valid captcha!")
},
onkeyup: false
});
});