I have a multi select and i want to find out what option the user clicked on. I have searched online but cant get any decent answer. I dont want an array of all selected option, just the one that the user clicked on
For example
Option A Option B Option C
if member clicks on Option A i want to get option A, if member then selects Option B, i want to get Option B, not Option A and B.
I have seen answers where they say to use the click event, but further research suggest that with multi options the click event does not fire, i must use on change.
The reason why i need this, is because we have the following requirement
Option A Option B Option C Option None
if member selects A, then B, then None, i need all the options to be deselected, and "None" just selected.
if None is selected, and member decides to select Option A, then None needs to be deselected and Option A needs to be selected.
The only way i can see achieving this is to know what option the member has clicked on, if None, then deselect all, then select None, else, make sure none is deselected if selected.