我在 NewForm.aspx 中有一个 SharePoint“保存”按钮,我试图通过 jQuery 禁用它。F12中的按钮如下图所示:
<input name="ctl00$ctl30$g_3bef9488_b9f0_405d_b989_cdfc35172f0d$ctl00$toolBarTbl$RightRptControls$ctl00$ctl00$diidIOSaveItem" class="ms-ButtonHeightWidth" id="ctl00_ctl30_g_3bef9488_b9f0_405d_b989_cdfc35172f0d_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem" accesskey="O" onclick="if (!PreSaveItem()) return false;if (SPClientForms.ClientFormManager.SubmitClientForm('WPQ2')) return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl30$g_3bef9488_b9f0_405d_b989_cdfc35172f0d$ctl00$toolBarTbl$RightRptControls$ctl00$ctl00$diidIOSaveItem", "", true, "", "", false, true))" type="button" value="Save" target="_self">
是否可以通过检查其值来禁用 Jquery 中的按钮。我的意思是,如果该值显示为“保存”,则禁用该按钮?谢谢