All Dictionaries
jQuery Related dictionaries
jquery header selector
Detailed instructions for use
jquery header selector
Chinese translation
Recent Updates: 2018-05-10 13:58:47
header
UK[ˈhedə(r)] US[ˈhɛdɚ]
n. Header; ear cutting machine; (automatically added to each item when computer prints header at the top of the page; header
jquery header selector syntax
Function: : The header selector selects all header elements (h1 - h6).
Syntax: $(":header")
jquery header selector example
<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(){
$(":header").css("background-color","#B2E0FF");
});
</script>
</head>
<body>
<html>
<body>
<h1>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>
<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




