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

python - rpy2 import is not working -

c++ - How to load a bitmap from file into the samples buffer -

javascript - How to get MySQL query result returned using $.ajax -