On Thursday, 22 January 2015 at 11:40:53 UTC, Gary Willoughby wrote:
doc.querySelectorAll(`form[name="myform"] input[type="text"]`)

dom.d is awesome!

Something to remember btw is this also works in browser JavaScript AND css itself, since IE8 and Firefox 3.5. (no need for slow, bloated jquery)

My implementation is different in some ways but mostly compatible, including some of the more advanced features like [attr^=starts_with_this] and $= and *= and so on. Also the sibling selectors ~ and +, and so on. (search for CSS selector info to learn more)

dom.d also does thigns like :first-child, but it does NOT support like :nth-of-type and a few more of those newer CSS3 things. I might add them some day but I fhind this is pretty good as is.

Reply via email to