I got a probably very silly question, but I couldn`t find it on the website anywhere.
I am making a website for an assignment and I`m doing rather well, but I am having trouble with the Terms and conditions radio buttons.
What I have is basically 2 radio buttons, one is Agree, second is disagree. The Disagree button is pre-selected. What is supposed to happen is basically a check if the terms and conditions are agreed before continuing to the next page.
TERMS & CONDITIONS
I have read and understood the CQU Privacy and Security Statement and agree to the use of my personal details for related activities.
<input type="radio" name="radio" id="yes">Yes, I agree.
<input type="radio" name="radio" id="no" checked="checked">No, I don`t agree.<br>
<form action="endPage.jsp">
<input type="submit" value="Submit" name="submit" />
</form>
So basically what I need is to get the user to agree to terms and conditions, otherwise give a popup window saying you have to agree with terms and conditions.
Thank you
tl;dr - How do I check if a certain checkbox is checked before submitting a form?