On the page there is a link:
<a href="#" id="SendRecord" disabled="disabled"><span>Записать</span></a> Can JS make it inactive for hover (CSS) and click (js) events?
On the page there is a link:
<a href="#" id="SendRecord" disabled="disabled"><span>Записать</span></a> Can JS make it inactive for hover (CSS) and click (js) events?
<a href="#" id="SendRecord" disabled="disabled"><span>Записать</span></a> $('a[disabled]').click(function(e){ e.preventDefault(); $(this).addClass('disabled-link'); }); I did not check it, but in theory it should work, you hang up a style with a disabled-link style with disabled hovers.
event.preventDefault () : This will not be triggered.
Source: https://ru.stackoverflow.com/questions/360347/
All Articles