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

c# - Reactive Extensions ControlScheduler -

multithreading - Reorderings in java memory model -

java - Add color code support to a Bukkit plugin -