Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how i used confirm yes no button Javascript validation instead of ok cancel
Posted

The javaScript confirm box cannot be customized.

You have to implement the jQuery UI Dialog for this.

Take a look at Confirmation Dialog[^].

Click on View Source Link, you can see the source then.
The buttons property of jQuery Dialog will help you to show your custom buttons.
 
Share this answer
 
Comments
Joezer BH 6-May-13 8:02am    
5ed! that's a great solution in my view, see link below to a couple more ;)
Thanks @Edo Tzumer...
See about 20 solutions here: Creating a yes/no prompt in javascript[^]

Cheers,
Edo
 
Share this answer
 
Comments
Oh my god, so many answers... Deserve a +5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900