+ 1
Alert
Hello Why the alert haven't the background ans text ? Thank https://code.sololearn.com/WdXz5QTKtV1a/?ref=app
16 Answers
+ 4
Alerts dont support gui here you could create your own though.
+ 4
Yes I have tried the code, works fine.
Try to update your browserview app maybe its outdated
+ 3
Code seems to works fine, no errors when I execute the code.
+ 3
I see, I hope its fixes the issue you encounter.
You're welcome, Any time👍😁
+ 2
Axelle,
In additional to D_Stark's correct answer,
A custom alert/prompt box is mostly called a modal box, you can use librarys to create a modal or you can easily build your own.😁
Here is a snippet of a modal box that you can customize to your requirements without external lib, hope it helps👍😊
https://code.sololearn.com/W454f7IK92kq/?ref=app
In additional: make a modal with some input and display it at the second modal:
https://code.sololearn.com/Wr31n1TW172K/?ref=app
+ 1
thank’s a lot
i go work on this code 😊
+ 1
JQuery is a library of Javascript.
If you didnt link the JQuery lib then it wont be initialized for execution
Paste this between the head tags to use JQuery external:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Additional i recommend you to finish the JQuery and Javascript courses to understand more.👍😊
+ 1
I keep you informed 😉
+ 1
🌴Vincent Berger🌴
i have finished my code, he is good, the alert is ok
thank you very much 😁
0
ok so with what i can put background,etc.... with a alert form or popup form and not a new page ?
0
🌴Vincent Berger🌴 sorry i come back to you because your first code was ok yesterday but now when i run i have an error line3 because « he don’t find the variable $ « .... i don’t understand... thank’s
...and it’s the same thing for all codes with $ in js... it’s maybe the app sololearn who bug ? i need help
0
Axelle,
Are you using JQuery, since the code is written in JQuery?
0
yes so, jQuery is in js no?
i haven't a langage only jQuery when i create a code.... i put jQuery in js
0
i see but i have the script tag in head... if you want well see this code please
thank's
https://code.sololearn.com/WDkhDd6tBa3l/?ref=app
0
he put me " error the variable $ isn't find " it's maybe the app sololearn or other who bug ? you have try the code ?😭😭
0
ok if you have click the button and see the alert and all on your computer i will try on an other computer thid week-end... so it's mine who bug
I thank you for your help and for all the time spent for me at the next
thank you 😁