how to style alert-box ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

how to style alert-box ?

20th May 2017, 2:24 PM
आदित्य मद्धेशिया
आदित्य मद्धेशिया - avatar
3 Answers
+ 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
20th May 2017, 2:34 PM
Maz
Maz - avatar
+ 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
20th May 2017, 3:37 PM
Utkαrsh
Utkαrsh - avatar
+ 1
you can use some plugins
20th May 2017, 2:28 PM
Vishnu C Nair
Vishnu C Nair - avatar