jquery attribute=value selector
Translation results:
attribute
UK[əˈtrɪbju:t] US[əˈtrɪbjut]
vt. Think that... is; attribute... to; attribute the quality of... to someone; think that... Something [thing] belongs to someone [thing]
n. Attribute; (of a person or thing) characteristics; value; [grammar] Attributive
value
UK[ˈvælju:] 美[ˈvælju]
n. Value, price; meaning, connotation; importance; face value (of a stamp)
vt. Evaluation; attention, Value; value, price...
jquery attribute=value selectorsyntax
Function:[attribute=value] The selector selects each element with the specified attribute and value.
Syntax: $("[attribute=value]")
##Parameters: attribute Required. Specifies the properties to look for. value Required. Specifies the value to look for.
jquery attribute=value selectorexample
<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(){ $("[id=choose]").css("background-color","#B2E0FF"); }); </script> </head> <body> <html> <body> <h1 id="main_header">Welcome to My Homepage</h1> <p class="intro">My name is Donald</p> <p>I live in Duckburg</p> <p>My best friend is Mickey</p> <h3 id="sub_header">My uncle is Scrooge</h3> <div id="choose"> Who is your favourite: <ul> <li>Goofy</li> <li>Mickey</li> <li>Pluto</li> </ul> </div> </body> </html> </body> </html>
Click the "Run instance" button to view the online instance
Popular Recommendations
- Bitcoin (BTC) Market Value to Realized Value (MVRV) Ratio Hints at an Upcoming Shift in Momentum
- Bitcoin (BTC) Short-Term Holders See Market Value-to-Realized Value (MVRV) Ratio Collapse Below Breakeven
- Go Maps Explained: How Key-Value Pairs Are Actually Stored
- 3 Cryptocurrency Projects With the Potential to Skyrocket in Value
- Trump and Melania Are Now Selling Commemorative Coins of Dubious Value
- Cristiano Ronaldo Coin Will Explode in Value Due to Various Factors