I currently have this code snippet:
<nav>
<ul class="sel">
<li>
<a href="#LINK1" data-title="A">A</a>
</li>
<li>
<a href="#LINK2" data-title="B">B</a>
</li>
<li>
<a href="#LINK3" data-title="C">C</a>
</li>
</ul>
</nav>
</header>
My goal is to have the <li>
element with
<a href='#LINK1' data-title="A">A</a>
automatically selected and displayed when the page loads. I've experimented with various jQuery solutions, but none have yielded the desired result.
Is it feasible to have this specific <li>
containing the specified <a>
tag appear upon page load?
I have explored multiple solutions, including:
Using jQuery to 'click' a li element
Click trigger on page load (UL > LI)