I have a link button inside a <td>
which I have to disable.(我必须禁用<td>
的链接按钮。)
This works on IE but not working in Firefox and Chrome.(这适用于IE,但不适用于Firefox和Chrome。) Structure is - Link inside a <td>
.(结构是- <td>
链接。) I cannot add any container in the <td>
(like div/span)(我不能在<td>
添加任何容器(例如div / span))
I tried all the following but not working on Firefox (using 1.4.2 js):(我尝试了以下所有方法,但无法在Firefox上运行(使用1.4.2 js):)
$(td).children().each(function () {
$(this).attr('disabled', 'disabled');
});
$(td).children().attr('disabled', 'disabled');
$(td).children().attr('disabled', true);
$(td).children().attr('disabled', 'true');
Note - I cannot de-register the click function for the anchor tag as it is registered dynamically.(注意-我无法取消注册锚标记的click功能,因为它是动态注册的。) AND I HAVE TO SHOW THE LINK IN DISABLED MODE.(而且我必须在禁用模式下显示链接。)
ask by Ankit translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…