文章详情页
jquery清除input type为password?
浏览:108日期:2022-06-24 17:25:33
问题描述
我试了.val("")和.attr("value","")的方法,但没有成功,对象获取上没问题的,因为用.attr成功改变了边框颜色,求助??
问题解答
回答1:jquery清除input type为password?-PHP中文网问答-jquery清除input type为password?-PHP中文网问答
围观一下哦,学习一下。
回答2:可以试下
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="jquery-2.1.1.min.js"></script> </head> <body ><input type="password" id="txtPwd" value="fsdafs"><script type="text/javascript">$(document).ready(function(){$("#txtPwd").attr("value","");});</script> </body></html>
标签:
word
相关文章:
1. python - 有什么好的可以收集货币基金的资源?2. docker容器呢SSH为什么连不通呢?3. docker镜像push报错4. docker安装后出现Cannot connect to the Docker daemon.5. docker start -a dockername 老是卡住,什么情况?6. docker网络端口映射,没有方便点的操作方法么?7. node.js - nodejs debug问题8. MySQL数据库中文乱码的原因9. Docker for Mac 创建的dnsmasq容器连不上/不工作的问题10. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””
排行榜
