I have two select tags, one with fruit and town options, and the other select list contains fruit names and town names. The question is when I select a fruit in the first select tag,only fruit names appear when I click on the second select tag.
Share
You’re missing a semi-colon after the
 -> .However I suggest using CSS. You can specify the margins around the
<select>like soThis will set the margins around all four sides of the element to
5px. If you want more fine-tuning, usemargin-left,margin-top,margin-bottom, and/ormargin-right.