js验证文本框及提示: 

$(".isData").blur(function (){ 
       var reg = /xxxxx/;
      var value=$(this).val(); 
      if(! reg.test(value)){
                 $(this).val("错误"); 
                 $(this).css("color","red"); 
                 $(this).click(function (){
                 $(this).val(""); 
                  $(this).css("color","black"); 
                }); 
       } 
});


相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案