javascript - How to search by classname and in element with style 'display='none'' -


my code

i have problem searching in javascript.

i need both throughout document , css class.

<span class="id">153</span> <span class="keywords">pararell processing, evolutionary algorithm, linear algebra algorithm, fpga</span> <span class="author">oleg maslennikow, </span> 

i want search g in oleg not in processing.

if search want show hide elements, , after hide it..

in case, able after class = 'author'.

i able @ elements have style display = 'none' showing element , keep it.

can me?

i dont want use jquery!

if using chrome browser should support document.queryselector()

this how achieve need :

document.queryselector('span.author'); // return span class="author" 

it supported in below browsers: https://developer.mozilla.org/en-us/docs/dom/element.queryselectorall

enter image description here


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -