文章詳情頁
jquery清除input type為password?
瀏覽:139日期: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. thinkphp5.1學(xué)習(xí)時(shí)遇到session問題2. docker網(wǎng)絡(luò)端口映射,沒有方便點(diǎn)的操作方法么?3. docker容器呢SSH為什么連不通呢?4. angular.js - angular內(nèi)容過長展開收起效果5. nignx - docker內(nèi)nginx 80端口被占用6. docker綁定了nginx端口 外部訪問不到7. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?8. javascript - iframe 為什么加載網(wǎng)頁的時(shí)候滾動(dòng)條這樣顯示?9. 前端 - ng-view不能加載進(jìn)模板10. php - 第三方支付平臺(tái)在很短時(shí)間內(nèi)多次異步通知,訂單多次確認(rèn)收款
排行榜

熱門標(biāo)簽