How can I create a custom jequery alert ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I create a custom jequery alert ?

I've completed Jequery course , I'm using it in my designs but I still have a question about how can I create a custom jequery alert ? is it possible to change the alert title ? if it is possible can someone give me an example that shows a custom alert .

2nd Nov 2018, 9:22 PM
Hassan Sahlaoui
Hassan Sahlaoui - avatar
7 Answers
+ 5
Custom alert box is called a modal Modal is just an element with fixed position.
2nd Nov 2018, 10:22 PM
Toni Isotalo
Toni Isotalo - avatar
+ 4
Hassan Sahlaoui, Here is a snippet of modal box in Jquery, hope it helps you out👍 https://code.sololearn.com/W454f7IK92kq/?ref=app
2nd Nov 2018, 10:38 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 2
Use pure JavaScript to build custom alert https://code.sololearn.com/W7yyr5UDRmsq/?ref=app
19th Nov 2018, 3:50 PM
Calviղ
Calviղ - avatar
+ 1
1. Design appearance 2. Code HTML & Css Now there are different methods for next step you can create "custom element" or you can use html template ... one another method that is preferred for start is to create a JS function that get message as argument and then set it in html. you can extend jquery and add your function to it
2nd Nov 2018, 11:15 PM
mohammad reza namdari
0
but how come ? I want to design my custom alert ?
2nd Nov 2018, 10:27 PM
Hassan Sahlaoui
Hassan Sahlaoui - avatar
0
thank you that's very helpful !!
2nd Nov 2018, 10:40 PM
Hassan Sahlaoui
Hassan Sahlaoui - avatar
0
Hassan Sahlaoui Design your code, show it to us
12th Jul 2020, 4:39 PM
Sali65
Sali65 - avatar