I have two checkboxes. What I need is when someone checks one of the boxes, it will automatically check the other one as well. And vice versa, if someone unchecks one of the boxes, it unchecks both. This is a bundle package on the form and they can not get one without the other.
<input type="checkbox" id="chk1" name="chk1" value="100">Voicemail<br />
<input type="checkbox" id="chk2" name="chk2" value="50">VM Support
Any help is greatly appreciated!
Assuming you want to only test these two checkboxes (and not every one on the page), you can use a jQuery Multiple Selector to access the
onClickevent for both. Usingthisyou can test the checked status of the checkbox that was just clicked, and then assign that status of both checkboxes to match the one that was just clicked.