I have a list of 10 checkboxes, how can I traverse all these checkboxes and get the values of all these checkboxes in an array????

Similarly, dropdown with multiple options selected...??