文章详情页
jquery清除input type为password?
浏览:266日期: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. javascript - vue中使用prop传递数据问题2. javascript - 在vue项目中遇到的问题:DOMException3. 网页爬虫 - 如何使用使用java抓取信息并制作一个排名系统?4. python小白 自学看书遇到看不懂的地方5. javascript - ionic1的插件如何迁移到ionic2的项目中6. php对mysql提取数据那种速度更快7. shell - mysql更新错误8. python - 在github上看到一个基于卷积神经网络提高图片分辨率的小项目waifu2x??9. 如何设置一个无限循环并打破它。(Java线程)10. javascript - immutable配合react提升性能?
排行榜

网公网安备