Created
April 13, 2013 14:05
-
-
Save sammyt/5378527 to your computer and use it in GitHub Desktop.
targeting multiple nodes with $
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Multiple Targets</title> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://rawgithub.com/sammyt/see/master/src/see.js"></script> | |
</head> | |
<body></body> | |
<script type="text/javascript"> | |
d3.select('body') | |
.selectAll(see('$h1+hr+$p*3')) | |
.text('Hello Marcus') | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment