How to get the selected checked CheckBoxes in an Array using JavaScript?
I have multiple CheckBoxes in the page.
<input type="checkbox" id="chkMango" value="Mango" /><label for="chkMango">Mango</label>
<input type="checkbox" id="chkApple" value="Apple" /><label for="chkApple">Apple</label>
<input type="checkbox" id="chkOrange" value="Orange" /><label for="chkOrange">Orange</label>
<input type="button" value="Show" />
When i check some or all Checkboxes i want its value to be save into an Array.