$(function(){

$("#username").bind("keyup",isReg);

$("#pwd").bind("keyup",isReg);

})

 

function isReg(){

var reg=/[^\a-\z\A-\Z0-9\_]/g;

var objValue=$(this).val();

objValue=objValue.replace(reg,"");

$(this).val(objValue);

}

相关文章:

  • 2021-09-05
  • 2021-06-04
  • 2021-10-27
  • 2022-01-26
  • 2022-12-23
  • 2021-11-22
  • 2021-08-01
  • 2021-11-29
猜你喜欢
  • 2021-11-02
  • 2022-12-23
  • 2021-08-10
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案