pai-da-xing

前端校验只能输入数字

 

<input name="elementLength" maxlength="8"
 onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,\'\');}).call(this)" onblur="this.v(); type="text" class="required"/>

分类:

技术点:

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2021-12-26
  • 2021-11-02
  • 2021-12-18
相关资源
相似解决方案