jQuery(document).ready(function(){
jQuery("#btntest").html("<input style='overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100px;height:30px;background-color:#e7f3fc;border-radius:8px' class='e8_btn_top_first' title='测试按钮' value='测试按钮' type='button' onclick='showmsg()' _disabled='true' >");
});
function showmsg() {
WfForm.showConfirm("请问你是否需要技术协助?",function(){
alert("操作按钮置灰");
WfForm.controlBtnDisabled(true); //操作按钮置灰
},function(){
alert("取消操作按钮置灰");
WfForm.controlBtnDisabled(false); //取消操作按钮置灰
},{
title:"信息确认", //弹确认框的title,仅PC端有效
okText:"需要", //自定义确认按钮名称
cancelText:"不需要" //自定义取消按钮名称
});
}
效果图:
点"需要"
点"不需要"