Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  <div id="firstDiv">First Div</div>
  <div>Second Div</div>
  
</body>
</html>
 
var firstDiv = document.getElementById('firstDiv');
angular.element(firstDiv).next().css('color', 'red');
Output

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

Dismiss x
public
Bin info
Keyamoonpro
0viewers