Help a CSS guy out with a JS choice: children[] or childNodes[]?
@stephenhay Depends what you need. All kinds of nodes (including comment nodes and text nodes) or just elements?
-
-
@mathias I'm grabbing the ID of an option within a select element. -
@stephenhay@mathias <select> elements have an "options" list. https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection … - 1 more reply
New conversation -
-
-
@mathias well actually I just need to grab an ID.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.