嗨,我想改变工具提示所需的信息角js。
当我悬停到文本框时,它会显示“请填写字段”消息。
我想将消息更改为“请输入值”。
如何更改错误消息。
在这里,我附上了链接
https://www.w3schools.com/code/tryit.asp?filename=FF9BZ4J5MZOW
打开链接并选择run。
发布于 2017-05-03 10:09:29
<input required type="number" min="0" name="No" title="Please Enter the value" />发布于 2017-05-03 10:09:11
<input type="text" required name="SKU" placeholder="Textbox" title="Please fill out the fields" />使用title属性。
也可以使用HTML5方法设置自定义消息。检查这里
textEl.setCustomValidity("This feild is required.");https://stackoverflow.com/questions/43757021
复制相似问题