I have a page layout like the below and I need to set values in <select> as I have a form.
<form action="add.jsp">
<input name="title" id="title"/>
<input name="company" id="company" />
<select name="options" id="options">
</select>
<button>Submit</button>
</form>
I want to add values to above <select/> from the checkboxes out side of the form which are
<input id="input-checkbox-1" name="input-checkbox" type="checkbox">Option 1
<input id="input-checkbox-2" name="input-checkbox" type="checkbox">Option 2
<input id="input-checkbox-3" name="input-checkbox" type="checkbox">Option 3
now don't have any idea of how to get values from checkboxes and add options to select using jQuery.
