jQuery :password
此選擇器能夠匹配密碼框。
jQuery1.0版本新增。
語法結構:
[JavaScript] 純文字檢視 複製程式碼jQuery( ":password" )
程式碼例項:
[HTML] 純文字檢視 複製程式碼執行程式碼<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://www.softwhy.com/" /> <title>螞蟻部落</title> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#bt").click(function () { $("input:password").css("background-color","#ccc"); }) }) </script> </head> <body> <ul> <li>密碼:<input type="password" name="pw"/></li> <li>使用者:<input type="text" name="txt"/></li> </ul> <input type="button" value="檢視效果" id="bt" /> </body> </html>
上面的程式碼可以將密碼框背景顏色設定為#ccc。
相關文章
- Oracle WebLogic Default Password & Change PasswordOracleWeb
- Django中的函式make_password、set_password和check_passwordDjango函式
- lsnrctl中,SET PASSWORD和CHANGE_PASSWORD命令
- iOS Password AutoFilliOS
- password檔案
- Password Storage - UserDetailsAI
- URL password 屬性
- linux lost passwordLinux
- Change redhat root passwordRedhat
- Give root password for maintenanceAINaN
- Oracle Password File 理解Oracle
- scp without interative password
- docker_sshd without passwordDocker
- ITaCS Change Password web partWeb
- 為oracle listener set passwordOracle
- REMOTE_LOGIN_PASSWORDREM
- Rsync over SSH with No Password (Crontab)
- How to Reset the MySQL Root PasswordMySql
- Forgot Password for user id SAP*Go
- Ecshop /admin/get_password.php Password Recovery Secrect Code Which Can Predict VulnerabilityPHP
- password_reuse_time與password_reuse_max之間的相互關係
- HTML input password密碼框HTML密碼
- HTML input password 密碼框HTML密碼
- Clear Windows XP login passwordWindows
- Oracle Profile and PASSWORD_VERIFY_FUNCTIONOracleFunction
- remote_listener和listener passwordREM
- Viewing Password File Members (49)View
- password_hash加密例項加密
- 漢化PHP的Password函式庫PHP函式
- Apache Httpd Server 2.2 Auth Password FormatsApachehttpdServerORM
- 1Password 實用快捷鍵
- go-password:生成類似1Password或LastPass高熵隨機密碼的Go庫GoAST熵隨機密碼
- 【PROFILE】PASSWORD_REUSE_TIME和PASSWORD_REUSE_MAX引數在Oracle不同版本中的差別Oracle
- Access denied for user 'root'@'localhost' (using password: NO)localhost
- MySQL:Your password does not satisfy the current policy requirementsMySqlUIREM
- No need to set a listener password in ORACLE 10GOracle 10g
- WCF Security:authentication based on Username/Password - Part I
- oracle備份指令碼_user_passwordOracle指令碼