hjg
2024-07-09 30304784e82d4bba24121328da8eb8490aec4f4f
提交 | 用户 | 时间
58d006 1 $(function(){
A 2     $("#refreshimg").click(function(){
3         $.post('newsession.php');
4         $("#captchaimage").load('image_req.php');
5         return false;
6     });
7     
8     $("#captchaform").validate({
9         rules: {
10             captcha: {
11                 required: true,
12                 remote: "process.php"
13             }
14         },
15         messages: {
16             captcha: "Correct captcha is required. Click the captcha to generate a new one"    
17         },
18         submitHandler: function() {
19             alert("Correct captcha!");
20         },
21         success: function(label) {
22             label.addClass("valid").text("Valid captcha!")
23         },
24         onkeyup: false
25     });
26     
27 });