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 Kosile5 Answers
New AnswerSo 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
This code collects all hyperlinks (<a> element) under <div> element. https://code.sololearn.com/W97ktNp0Nhy8/?ref=app
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message