How to disable HTML links

后端 未结 14 1636
刺人心
刺人心 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:27

    Got the fix in css.

    td.disabledAnchor a{
           pointer-events: none !important;
           cursor: default;
           color:Gray;
    }
    

    Above css when applied to the anchor tag will disable the click event.

    For details checkout this link

提交回复
热议问题