文章詳情頁
jquery清除input type為password?
瀏覽:260日期:2022-06-24 17:25:33
問題描述
我試了.val("")和.attr("value","")的方法,但沒有成功,對象獲取上沒問題的,因?yàn)橛?attr成功改變了邊框顏色,求助??
問題解答
回答1:jquery清除input type為password?-PHP中文網(wǎng)問答-jquery清除input type為password?-PHP中文網(wǎng)問答
圍觀一下哦,學(xué)習(xí)一下。
回答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>
標(biāo)簽:
word
相關(guān)文章:
1. javascript - 最近用echarts做統(tǒng)計(jì)圖時(shí)遇到兩個(gè)問題!!2. 淺談Vue使用Cascader級聯(lián)選擇器數(shù)據(jù)回顯中的坑3. node.js - less-loader 使用Mixins出錯4. 利用IPMI遠(yuǎn)程安裝centos報(bào)錯!5. android - 使用MTP連接的時(shí)候如何使自己的app加入選擇列表6. 為什么redis中incr一個(gè)“0” 會報(bào)錯?7. celery+redis 怎么看redis里面的內(nèi)容8. android - 使用百度sdk調(diào)用SDKInitializer.initialize(this)時(shí)報(bào)錯?9. node.js - npm run dev報(bào)錯10. android - 優(yōu)酷的安卓及蘋果app還在使用flash技術(shù)嗎?
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備