文章詳情頁(yè)
jquery清除input type為password?
瀏覽:138日期:2022-06-24 17:25:33
問(wèn)題描述
我試了.val("")和.attr("value","")的方法,但沒(méi)有成功,對(duì)象獲取上沒(méi)問(wèn)題的,因?yàn)橛?attr成功改變了邊框顏色,求助??
問(wèn)題解答
回答1:jquery清除input type為password?-PHP中文網(wǎng)問(wèn)答-jquery清除input type為password?-PHP中文網(wǎng)問(wèn)答
圍觀一下哦,學(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. 數(shù)據(jù)庫(kù) - MySQL 單表500W+數(shù)據(jù),查詢超時(shí),如何優(yōu)化呢?2. python - Django分頁(yè)和查詢參數(shù)的問(wèn)題3. 求大神幫我看看是哪里寫錯(cuò)了 感謝細(xì)心解答4. MySQL客戶端吃掉了SQL注解?5. 網(wǎng)頁(yè)爬蟲(chóng) - python爬蟲(chóng)翻頁(yè)問(wèn)題,請(qǐng)問(wèn)各位大神我這段代碼怎樣翻頁(yè),還有價(jià)格要登陸后才能看到,應(yīng)該怎么解決6. javascript - 圖片能在網(wǎng)站顯示,但控制臺(tái)仍舊報(bào)錯(cuò)403 (Forbidden)7. php自學(xué)從哪里開(kāi)始?8. mysql - AttributeError: ’module’ object has no attribute ’MatchType’9. android - Windows系統(tǒng)下運(yùn)行react-native App時(shí),報(bào)下面的錯(cuò)誤?10. phpstady在win10上運(yùn)行
排行榜

熱門標(biāo)簽