求只能输入英文和数字(无闪动)
来源:百度知道 编辑:UC知道 时间:2024/07/04 10:53:25
只能输入英文和数字(无闪动)
<input type=text>
大哥,你这有闪动
<input type=text>
大哥,你这有闪动
这问题提的,
来点详细描述好不?
<input type="text" name="yaowei"
onKeyUp="value=value.replace(/[\W]/g,'') "
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">