search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Programming Dictionary

Online technical manual for service programmers
Popular searches:
Dictionary homepage JavaScript jQuery jquery input selector
jquery input selector Detailed instructions for use

jquery input selector

Chinese translation Recent Updates: 2018-05-10 14:40:33

input

UK[ˈɪnpʊt] US[ˈɪnˌpʊt]

n.Input, input; input circuit; <electricity> input end; input data

vt. Input... into the computer; [auto][electronic] input; input, feed

jquery input selector syntax

Function: :The input selector selects form elements. This selector also works on <button> elements.

Syntax: $(":input")

jquery input selector example

<html>
<head>
<script type="text/javascript" src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript"> 
 
$(document).ready(function(){
    $(":input").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>
Run instance »

Click the "Run instance" button to view the online instance

jquery input selector