Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
<meta name="description" content="jQuery selectors" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<title>jQuery selectors</title>
</head>
<body>
  <h1>My first heading</h1>
some text below the first heading
  <h1 id="special">My second heading</h1>
  <div id="mytext">some below the second heading, in a div</div>
</body>
</html>
 
//$("h1").css('color', 'red');
//$("#special").css('color', 'blue');
//$("#mytext").text("different text");
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
pvanallenpro
0viewers