I need help to integrate JavaScript search/filter into my web | SoloLearn: Learn to code for FREE!

+1

I need help to integrate JavaScript search/filter into my web

I want to be able to search any content within the section in <a></a> tag I have the code in this format, over 30 boxes within a section <Section> Box 1 <div> <div><img src="......"> </div> <a>Tornado</a> </div> Box 2 <div> <div><img src="......"> </div> <a>Tornado</a> </div> ......... Box 3 Box 4 </section>

11/24/2020 3:20:35 PM

Olamide Kosile

5 Answers

New Answer

+1

So you want to collect all the hyperlinks elements inside the section? More information needed here, for example, does every div contain exactly just one hyperlink, or is it possible that a div contains many hyperlink in? It may help others to accurately answer if you can post full version of the code. Save a copy of your code in SoloLearn and share the saved code link in the Description above ☝ Follow this guide to sharing links in case you didn't know https://www.sololearn.com/post/75089/?ref=app

+1

This code collects all hyperlinks (<a> element) under <div> element. https://code.sololearn.com/W97ktNp0Nhy8/?ref=app

+1

0

0

All the div contains one hyperlink