问题描述
我有一个字段集标记,如果存在特定的 URL 变量,我会将其设置为禁用属性:
<fieldset class="fieldsetGeneralSettings" <cfif #url.read_only# eq 'yes'>disabled="disabled"</cfif> >
</fieldset>
当我将该属性设置为禁用时,字段集的所有元素都被禁用,但是我想强制启用该字段集内的一个 HTML 按钮。我试图使用以下 javascript 强制它,但它似乎没有做任何事情。
<button id="followup_detail_button" class="TicketButton" onclick="followupButtonDetailsClick(event);"><i class="far fa-calendar-alt"> </i> <font color="red">Follow-up Request</font></button>
<button id="followup_button" class="TicketButton" onclick="followupButtonClick(event);"><i class="far fa-calendar-alt"> </i> Follow-up Request</button>
<script>
$(document).ready(function () {
console.log("Trying to enable the button");
$("##followup_detail_button").removeAttr('disabled');
$("##followup_button").removeAttr('disabled');
})
</script>
我做错了什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)