how to know what dropdown was selected in html code example Example: html select option selected true <option selected='selected' />