$("#btn_submit").click(function(){
alertify.prompt("Please enter note/remarks for this Form:", function (e, value) {
$("#alertify-ok").val('Submit Form'); //change button text
if (e) {
alertify.success("Form has been submitted");
} else {
alertify.error("Your form is not submitted");
}
});
警告提示对话框的 HTML
<button id="alertify-ok" class="alertify-button alertify-button-ok" type="submit">
OK
</button>
当用户单击提交按钮时出现提示。尝试使用下面更改按钮文本但它不起作用
$("#alertify-ok").val('Submit Form'); //change button text
小提琴- 我需要将默认OK
按钮文本更改为其他内容
如何将按钮文本更改为Submit Form
而不是默认值OK
?