文章详情页
jquery清除input type为password?
浏览:242日期: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. html5 - 求详解h5 video事件监听2. android - webview 自定义加载进度条3. jupyter-notebook - Mac下启动jupyter notebook后没有Python的选项?4. Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?5. 输入地址报以下截图错误,怎么办?6. javascript - vue更改当前节点元素7. vue.js - vue 打包后 nginx 服务端API请求跨域问题无法解决。8. angular.js - angular post的Content-Type被设置,导致不能上传图片,求助!!9. css3 - 这个效果用 CSS 可以实现吗?border-image10. http - nginx 反向代理 url 错误
排行榜

网公网安备