Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to echo Check Box in JavaScript Alert When Click on Submit Button

I am new in JavaScript. I have a form code in which i have some input type and a submit button. I want that when user click on Submit button then an alert is open having 3 check boxes and two button Ok and Cancel When user check all checkbox then it pass all variables to the next page. if user not check any check-box it restrict user to check all checkboxes.

like image 323
sunny Avatar asked Dec 27 '25 19:12

sunny


1 Answers

You can't have checkboxes/html in alert(), confirm() or prompt(). You might want to look into plugins like bPopup and use those for this purpose.

like image 200
L Ja Avatar answered Dec 30 '25 08:12

L Ja