t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.39k stars 2.84k forks source link

Use SweetAlert input content #879

Closed elig-45 closed 5 years ago

elig-45 commented 5 years ago

What is the variable containing the user input ? If I for example want to set up a condition if the users enter a correct password in the SweetAlert box ?

Till then, I use Js prompt() to do this ; but I am looking forward to replace the alert(), confirm() and let var = prompt() by better looking SweetAlerts.

Thanks a lot and sorry for my maybe incorrect English ; I come from France 🇫🇷 😄

t4t5 commented 5 years ago

Check out these 2 examples from the docs:

Bonne chance! :)

elig-45 commented 5 years ago

Thanks

Eli G

Envoyé de mon iPad EA

Le 29 nov. 2018 à 08:34, Tristan Edwards notifications@github.com a écrit :

Check out these 2 examples from the docs:

How to get the user's value from an input How to change the input to a password type Bonne chance! :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.