I have following code:
<a onclick="placesclick();" href="javascript:void(0)">
<span class="place">3</span>
</a>
I need to make the span unclickable, so I was thinking about hiding the “a” element but leave the span shown. Is it possible somehow easily without removing the whole “a” and then adding span again? Or is there a better way?
Thanks
Working demoIf I understand you need to have the structure:
<a><span></span></a>, but the clickable event of these tags must be deleted.You have to add: