dropshado.ws

Front-end development minutiæ

by David DeSandro

Archive
RSS feed
Twitter
GitHub Pages mirror

Surfin’ Safari - Blog Archive » querySelector and querySelectorAll

document.querySelector('.box');

Basically the equivalent of jQuery object querying in native browser JS. Looks like its supported in Firefox 3.5. While I haven’t checked, I imagine that Opera supports it as well, considering two Opera team members are editors on the recommendation.

19 Jul 2010
  • webkit
  • js
  • desandro.com
  • @desandro
  • github.com/desandro
  • desandro’s JS Fiddles