YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* Bootstrap - モーダルウィンドウ [#tae03184]
** モーダルウィンドウでOKを選んだらPOSTする [#zc8de23b]
- http://stackoverflow.com/questions/17508444/how-to-post...
- http://untame.net/2013/05/how-to-build-a-modal-contact-...
** Bootboxjs [#id8a4322]
$(function () {
$("input[data-kind='confirm-btn'").on('click', funct...
e.preventDefault();
var form = this.form;
var text = $(this).data('text');
bootbox.dialog({
message: text,
buttons: {
confirm: {
label: "OK",
className: "btn-primary",
callback: function (data) {
if (data) {
form.submit();
}
}
},
cancel: {
label: "Cancel",
className: "btn-default",
callback: function () { }
}
}
});
});
});
<input data-kind="confirm-btn" data-text="登録しますか?...
http://bootboxjs.com/
** 参考 [#nfc077da]
http://getbootstrap.com/javascript/#modals
終了行:
* Bootstrap - モーダルウィンドウ [#tae03184]
** モーダルウィンドウでOKを選んだらPOSTする [#zc8de23b]
- http://stackoverflow.com/questions/17508444/how-to-post...
- http://untame.net/2013/05/how-to-build-a-modal-contact-...
** Bootboxjs [#id8a4322]
$(function () {
$("input[data-kind='confirm-btn'").on('click', funct...
e.preventDefault();
var form = this.form;
var text = $(this).data('text');
bootbox.dialog({
message: text,
buttons: {
confirm: {
label: "OK",
className: "btn-primary",
callback: function (data) {
if (data) {
form.submit();
}
}
},
cancel: {
label: "Cancel",
className: "btn-default",
callback: function () { }
}
}
});
});
});
<input data-kind="confirm-btn" data-text="登録しますか?...
http://bootboxjs.com/
** 参考 [#nfc077da]
http://getbootstrap.com/javascript/#modals
ページ名: