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

时间:2015-11-12 11:11:27

标签: javascript php jquery html forms

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.

2 个答案:

答案 0 :(得分:4)

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.

答案 1 :(得分:0)

You can create second form popup it on click (after you save the data from the first form) then act on second form to processed to next page...