var form = document.createElement("div");
form.innerHTML = "<input type='text' id='Test'>";
swal({
content: form,
closeOnEsc: false,
closeOnClickOutside: false,
});
$('#Test').datepicker();
The swal
is displayed without any problem and also input but when I click on input nothing happens.
When I do the same thing in body
and out of swal(without sweet alert) its ok and datepicker is active and I can choose a time but the problem is happened when I using swal
2
Answers
You could try the didOpen function:
Using didOpen with the current approach