Use querySelector and querySelectorAll
var testContainer = document.querySelector('#test');
var fourChildNode = testContainer.querySelector('.four');
IE9 and upper
More Related Contents:
- Set Value of Input Using Javascript Function
- Need to find height of hidden div on page (set to display:none)
- Execute function before refresh
- jQuery equivalent of YUI StyleSheet Utility?
- Add/Remove Class of Nav Objects on Page Scroll
- How To Display Images Preview and Title When I Paste in Another Site Like Facebook, Whatsapp, etc
- How do I decode a string with escaped unicode?
- Javascript: Setting location.href versus location
- How to check whether a Storage item is set?
- JSON.stringify doesn’t work with normal Javascript array
- How to check if an embedded SVG document is loaded in an html page?
- Why “this” is undefined inside a fat arrow function definition? [duplicate]
- Make function wait until element exists
- Can I use a case/switch statement with two variables?
- Have a div cling to top of screen if scrolled down past it [duplicate]
- Puppeteer log inside page.evaluate
- How to access Chrome spell-check suggestions in JavaScript
- Backbone.js and pushState
- AngularJS multiple expressions concatenating in interpolation with a URL
- Angular filter a object by its properties
- How to code a JavaScript modal popup (to replace Ajax)?
- canvas.toDataURL() Security Error The operation is insecure
- Possible to defer loading of jQuery?
- Human readable javascripts in chrome developer tools
- JavaScript: difference between a statement and an expression?
- The Safari Back Button Problem
- How can I use webpack with express?
- Class based component vs Functional components what is the difference ( Reactjs ) [duplicate]
- Memoization of promise-based function
- How to decode a JSFuck script?