The focus() method gives the focus to the select box. AA BB CC DD onClick="setFocus(1)"> EE FF GG HH onClick="setFocus(2)">