+ 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>

24th Nov 2020, 3:20 PM
Olamide Kosile
Olamide Kosile - avatar
5 RĂ©ponses
+ 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
24th Nov 2020, 4:08 PM
Ipang
+ 1
This code collects all hyperlinks (<a> element) under <div> element. https://code.sololearn.com/W97ktNp0Nhy8/?ref=app
26th Nov 2020, 6:13 AM
Ipang
+ 1
Thanks
5th Dec 2020, 5:09 PM
Olamide Kosile
Olamide Kosile - avatar
0
You can use indexing in js
24th Nov 2020, 3:45 PM
đŸ„‡đŸ‘©â€đŸ’» Kintu Michael Evans đŸ”„đŸ”„( Active)
đŸ„‡đŸ‘©â€đŸ’» Kintu Michael Evans đŸ”„đŸ”„( Active) - avatar
0
All the div contains one hyperlink
25th Nov 2020, 12:42 AM
Olamide Kosile
Olamide Kosile - avatar