- 论坛徽章:
- 0
|
- $(document).ready(function ()
- {
- $('#email').blur(function (){
- $.post(
- 'register.do?method=clickEmailAction',//是你struts的action
- {
- email('#email').val()//传的参数 你的账号
- },
- function (data) //验证的结果
- {
- if(data==0){
- $('#clientemail').html(" <font color=green >此登录账号可以注册</font>");
-
- }
- else{
- $('#clientemail').html(" <font color=red >此登录账号已经注册过了</font>");
-
- document.getElementById("email").value="";
- }
-
- }
- );
-
- }
- else{
- document.getElementById("email").value="";
-
- }
- });
-
- })
复制代码 |
|