I dont want to have to ctrl+click in order to select multiple somethings from the list. all i want is to click something - it is selected. or click again - it is deselected. sounds super simple but i have been trying for a while and i cant get it to work. here is an example of my list. the list of options is generated on load so i dont know how many options ill have but if i can just get index onclick and use that to set selected=true then that will solve my problem. If anyone can help.
example of the select list.
<select id="test" multiple>
<option selected value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
</select>
<script>
$("#test option").click(function () {
//ToDo
});
</script>