The example in this article covers jquery: Submit selector usage. Share to everyone for your reference. The specific analysis is as follows:
This selector is able to select all Submit buttons.
It is not only the type that is to be selected, but the button is also selected.
Syntax structure:
Copy Code code as follows:
Instance code:
Copy Code code as follows:
<! DOCTYPE html>
<meta charset= "Utf-8" >
<meta name= "Author" content= "http://www.jb51.net/"/>
<title> Cloud-dwelling community </title>
<script type= "Text/javascript" src= "Mytest/jquery/jquery-1.8.3.js" ></script>
<script type= "Text/javascript" >
$ (document). Ready (function () {
$ ("button"). Click (function () {
$ (": Submit"). CSS ("Background-color", "Red");
});
});
</script>
<body>
<ul>
<li>
Unavailable text boxes: <input type= "text" name= "Zhuanqu" disabled= "disabled"/>
Available text boxes: <input type= "text" name= "Keyong"/>
<input type= "Submit" value= "submitted"/>
</li>
</ul>
<button> Click to view Effect </button>
</body>
I hope this article will help you with your jquery programming.