How to disable HTML links

后端 未结 14 1389
刺人心
刺人心 2020-11-22 13:00

I have a link button inside a which I have to disable. This works on IE but not working in Firefox and Chrome. Structure is - Link inside a <

14条回答
  •  死守一世寂寞
    2020-11-22 13:25

    you cannot disable a link, if you want that click event should not fire then simply Remove the action from that link.

    $(td).find('a').attr('href', '');
    

    For More Info :- Elements that can be Disabled

提交回复
热议问题