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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With