image

Anglais [ˈɪmɪdʒ] Américain [ˈɪmɪdʒ]

n. Image ; concept, image miroir, réflexion

vt. image de réflexion ;

sélecteur d'image jquery syntaxe

Fonction :  : le sélecteur d'image sélectionne les éléments <input>

Syntaxe : $(":image")

sélecteur d'image jquery exemple

<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(){
    $(":image").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 />
<input type="image" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
</form>
</body>
</html>
</body>
</html>
Exécuter l'instance »

Cliquez sur le bouton « Exécuter l'instance » pour afficher l'instance en ligne