• [ Moderator note: moved to Fixing WordPress. ]

    Hello,
    I have a problem with the selected <option> when trying to select from a dropdown menu.

    The code is:

    <select id="gallery_id">
     <option value="0">Create new gallery</option>
     <option value="1">Gallery 1</option>
     </select>

    The default option is the first one but I want that the default one was the Option 2 “Gallery 1”. I can´t edit the html just to add the selected tag after the <option. How can I do it?

    • This topic was modified 9 years, 2 months ago by alepazm.
    • This topic was modified 9 years, 2 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Default Selected Option’ is closed to new replies.