14
rated 0 times
[
17]
[
3]
/ answers: 1 / hits: 15873
/ 11 Years ago, sun, december 22, 2013, 12:00:00
I have the following HTML.
<ul class=static>
<li class=static dynamic-children>
<a class=static dynamic-children menu-item href=test.php tabindex=0>
<span class=additional-background>
<span class=menu-item-text>Link</span>
</span>
</a>
<ul class=dynamic>
</ul>
</li>
</ul>
As you can see when I click on Link then it takes me to test.php page. I want this Link to be unclickable like you place # for e.g. href=#
Is it possible to do this using CSS or Jquery? Can't use Javascript's document.getElementById because there is no ID defined for this element.
More From » jquery