pemilih teks jquery


  Hasil terjemahan:

teks

Bahasa Inggeris [tekst] AS [tɛkst]

n Teks, teks asal, buku teks

v

pemilih teks jquerysintaks

Fungsi: :pemilih teks memilih <input>

Tatabahasa: $(":teks")

pemilih teks jquerycontoh

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript"> 
 
$(document).ready(function(){
    $(":text").css("background-color","#B2E0FF");
});
 
</script>	
 
</head>
<body>
<html>
<body>
 
<form action="">
Name: <input type="text" name="user" />
<br />
Password: <input type="password" name="password" />
<br />
<button type="button">Useless Button</button>
<input type="button" value="Another useless button" />
<br />
<input type="reset" value="Reset" />
<input type="submit" value="Submit" />
<br />
</form>
</body>
</html>
</body>
</html>
Jalankan Instance »

Klik butang "Run Instance" untuk melihat contoh dalam talian

Cadangan popular

Rumah

video

Soal Jawab