+ 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 .
7 Réponses
+ 5
Custom alert box is called a modal
Modal is just an element with fixed position.
+ 4
Hassan Sahlaoui,
Here is a snippet of modal box in Jquery, hope it helps you out👍
https://code.sololearn.com/W454f7IK92kq/?ref=app
+ 2
Use pure JavaScript to build custom alert
https://code.sololearn.com/W7yyr5UDRmsq/?ref=app
+ 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
0
but how come ? I want to design my custom alert ?
0
thank you that's very helpful !!
0
Hassan Sahlaoui Design your code, show it to us