#5のフォローアップ
これは0.5.0リリースで閉じられます。inputTypeを変更してください。
$('button.delete-account').click(function(e) {
swal({
title: "Are you sure you want to delete your account?",
text: "If you are sure, type in your password:",
type: "input",
inputType: "password",
showCancelButton: true,
closeOnConfirm: false
}, function(typedPassword) {
console.log(typedPassword);
});
});
@parterburnが言ったように、 inputType
を使用するだけで、準備完了です。 また、入力機能の使用方法がわからない場合は、 SweetAlertチュートリアルを確認してください。
ポインタをありがとう、そしてノイズをお詫びします:)
これは実用的なソリューションです。 ありがとう :)
それは動作します👍
最も参考になるコメント
これは0.5.0リリースで閉じられます。inputTypeを変更してください。