Take a look at this code:
<div class="results">
<div class="search-results" data-link="some url1">result1</div>
<div class="search-results" data-link="some url2">result2</div>
<div class="search-results" data-link="some url3">result3</div>
<div class="search-results" data-link="some url4">result4</div>
</div>
This is a search bar where typing text displays results in a dropdown using AJAX.
The results shown above are links, but they do not have an <a>
tag.
How can we click on one of these results (specifically the first result) if they do not have an <a>
tag?