add the option index that are selected/deselected
Merge pull request #68 from jDramaix/jd_add_index

add the option index that are selected/deselected