How to determine which options selected in multiple