+ 2

How can i create custom alert box with option like yes or no

Like this👇👇 https://www.sololearn.com/post/615516/?ref=app

26th Sep 2020, 11:14 AM
Aditya Sonwane
Aditya Sonwane - avatar
5 Respuestas
+ 8
You can easily make this with javascript. Just take two buttons and give them id: And then add click Listener and then do stuffs on click. You can check out this code it has one: //see the bottom of code you'll find popup there. https://code.sololearn.com/WEiCYpac4u5y/?ref=app & as Abhay said there's a pre-made library call sweet-alert 😋
26th Sep 2020, 1:08 PM
Aakaanksha 💕 [TheBraveCoders]
Aakaanksha 💕 [TheBraveCoders] - avatar
+ 5
You can create them easily if you understand how to use JavaScript ,but in case you don't want there exists a library "sweetalert" ,give it a try https://www.npmjs.com/package/sweetalert2
26th Sep 2020, 11:20 AM
Abhay
Abhay - avatar
+ 3
Abhay Like this? ________________________________ | | | You like it? | | | |___________________yes____no__| This is alert box
26th Sep 2020, 12:33 PM
Aditya Sonwane
Aditya Sonwane - avatar
+ 2
Aditya sweetalert provides everything if you care to read the documentation and others tutorials or create one from scratch
26th Sep 2020, 12:16 PM
Abhay
Abhay - avatar
+ 2
Thank you Aakaanksha 💕
26th Sep 2020, 1:16 PM
Aditya Sonwane
Aditya Sonwane - avatar