Form button (input:button)
In this chapter you will learn:
Description and Syntax
$(":button")
selects all button elements and input elements with a
type of button (<button>
, <input type="button">
)
Examples
<html><!--from j a v a 2s.com-->
<head>
<script src="http://java2s.com/style/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(":button").css({background:"yellow", border:"3px red solid"});
});
</script>
</head>
<body>
<body>
<input type="button" value="Input Button"/>
<input type="checkbox" />
<input type="file" />
<input type="hidden" />
<input type="image" />
<input type="password" />
<input type="radio" />
<input type="reset" />
<input type="submit" />
<input type="text" />
<select><option>Option<option/></select>
<textarea></textarea>
<button>Button</button>
</body>
</html>
Next chapter...
What you will learn in the next chapter: