Я использую пользовательскую версию sweetalert, чтобы запрашивать у пользователя input
. Мне удалось заставить все работать, но есть странное поведение. Чтобы иметь возможность ввести текст в поле ввода, вы должны сначала щелкнуть экран:
swal({
title: "Aggiornamento profilo",
text: '<br /><form method="post" id="taxcode-update" name="taxcodeUpdate"><input id="admin-tax-code" minlength="3" class="form-control wedding-input-text wizard-input-pad" type="text" name="taxCode" placeholder="Codice fiscale"></form>',
type: "warning",
showCancelButton: false,
confirmButtonText: "Aggiorna il mio profilo",
closeOnConfirm: false
}, function () {
swal("Deleted!", "Your imaginary file has been deleted.", "success");
});
Рабочий пример: https://jsfiddle.net/fvkppx06/