javascript - Getting all inner text of divs with same class -


Is there any way that I can do all the internal classes html = "company name"?

Please guide me in the right direction.

Edit

Can I use it in Chrome console to get information from web pages?

Please do not use jquery for this. It's very easy with plain ol javascript.

  var x = document.querySelectorAll ("[class = 'company name']"); For  
(var i = 0; i & lt; x.length; i ++) {// grab x [i]. WinnerHTML (or textContent or innerText)}

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -