0
how to implement multiple inputs in Swalt.js
I'm going to write a card creation site and I'd like the user to enter the title and text of the card and I could get these values
4 odpowiedzi
+ 3
It look like it is not possible, I checked documentation, githube code, internet questions...
but I managed to find out how swalt.js work under the hood, so I added another input manually.
https://code.sololearn.com/WRiy56D6NboZ/?ref=app
Basically swalt.js create html div element(alert modal) and append new elements like title, input, button, description.... I found what id-s and className-s they are using and add my input element
+ 4
+ 2
There isn't an example for adding multiple inputs even in their homepage https://swalt.netlify.app/
You would *probably* have to author your own custom alert box for that ...
+ 1
Calviղ if I am not wrong it is diferent library(sweetalert2), but you are right for this case it is better option.
Because it support much more then swalt.js