I have a select tag as follows
<SELECT onClick="func(options[selectedIndex].id)" name="fieldName">
This will pass the id of whatever element is clicked on in the select box to the function. However if I use a multiple select then it will only give you the first item selected. Is there any way in a multiple select to tell the last option selected since you can select things in any order?
<SELECT onClick="func(options[selectedIndex].id)" name="fieldName">
This will pass the id of whatever element is clicked on in the select box to the function. However if I use a multiple select then it will only give you the first item selected. Is there any way in a multiple select to tell the last option selected since you can select things in any order?