+ 8
how to style alert-box ?
3 Respuestas
+ 12
Use sweetalert. ^^
------------------------------------------
CDN to insert in your <head> tag:
<script src = "https://cdn.jsdelivr.net/sweetalert2/6.6.2/sweetalert2.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/sweetalert2/6.6.2/sweetalert2.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.4.1/core.js"></script>
------------------------------------------
https://code.sololearn.com/WR4Tg7iUREf3/?ref=app
See also this code made by @Burey with jQuery: https://code.sololearn.com/WhYVl96KxjWe/?ref=app
+ 3
You can also create your own alert box (can be confusing) .
Like I created the alert in this code.
https://code.sololearn.com/WIF2bAaS534q/?ref=app
+ 1
you can use some plugins