javascript - How to search by classname and in element with style 'display='none'' -
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
Comments
Post a Comment