Using jQuery, is there a quick way of setting the 'checked' attribute
to true for all the 'veggies' below?
Thank you.

<form name='store'>
<input type="checkbox" name="veggies" value='2'>Banana
<input type="checkbox" name="veggies" value='1'>Avocado
<input type="checkbox" name="veggies" value='0'>Apple
<input type="checkbox" name="veggies" value='3'>Papaya
<input type="checkbox" name="veggies" value='4'>Plum
<br>
<input type="checkbox" name="fruits" value='a'>Broccoli
<input type="checkbox" name="fruits" value='b'>Cabbage
<input type="checkbox" name="fruits" value='c'>Radish
<input type="checkbox" name="fruits" value='d'>Squash
<input type="checkbox" name="fruits" value='e'>Cucumber
</form>

Reply via email to