Skip to content

Instantly share code, notes, and snippets.

@sammyt
Created April 13, 2013 14:05
Show Gist options
  • Save sammyt/5378527 to your computer and use it in GitHub Desktop.
Save sammyt/5378527 to your computer and use it in GitHub Desktop.
targeting multiple nodes with $
<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