How does this fare with tags without closing tags? Eg: , , etc.
Then again, you need to figure out the index yourself because his snippet doesn't do so.
I was a little confused by that. "offset" isn't normally used to describe an array index.
The only way I see to achieve that is by specifying the offset.
Does this let you select the Nth element matching the tag? And it would be really nice if you could select elements based on their class or div id.
Nice, this is the sort of thing I like to see. It's very useful for building all sorts of tools.