$("#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
FiddleOK
- デフォルトのボタンテキストを別のものに変更する必要がある場所
Submit Form
ボタンのテキストをデフォルトの代わりに変更するにはどうすればよいですOK
か?