2011-02-09 87 views

回答

1

嗨杰克 首先转换登录控制为模板,然后添加下面的jQuery代码在页面

$(document).ready(function() { 
      $('input[type="submit"]').attr('disabled', 'disabled'); 
      $('input[type="text"]').keypress(function() { 
       if ($(this).val != '') { 
        $('input[type="submit"]').removeAttr('disabled'); 
       } 
      }); 
     }); 
的标题部分