<li class=" active">
<input class="check-shopby" type="checkbox" onclick="$(this).next().click()" checked="checked">
<a class="checked" href="http://mysite/~dev433/products//cooking/cook-tops.html" onclick="$(this).previous().checked = false;" style="cursor: pointer;">
<img width="150" alt="" src="site/media/wysiwyg/attribute_Sets_images/Fagor-CE9-20-1.jpg">
<span> Electricity (74) </span>
</a>
<a onclick="otherjavascriptfunction" href="/somewhere">link</a>
</li>
Ok, this is my content inside a li item, when i go under certain condition i want it(the li item itself and all other clickable items inside) to be completely unclickable, if even possible some non-clickable(disabled) sign.
This is what i tried but it replaces my content, $("div li a").replaceWith(function() { return $(this).text(); });
pointer-events: none;on all link elements and to disable wholeli, add a class toliwith some opacity.