Forums

Listbox in the backend (3 posts)

  1. D124c0
    Member
    Posted 1 year ago #

    I am developing a plugin. In the plugin I have a form. In the form I am trying to make a list box with the following code:

    <select style="width:150px" id="input_10" name="items" size="4" multiple="multiple">
                            <option>  </option>
                            <option value="Option 1"> another option </option>
                            <option value="Option 2"> Option 2 </option>
                            <option value="Option 3"> Option 3 </option>
                        </select>

    but when i go to the form it is sized as if it was 1. and there is no scroll bar.

  2. D124c0
    Member
    Posted 1 year ago #

    Oh yea I forgot to say this is the settings form in the backend not the frontend of the site

  3. che3ver
    Member
    Posted 1 year ago #

    I know it's not normal, but it works if you just specify a height in the style along with the width.
    The problem I'm having is getting the selected values to save properly. =\

Topic Closed

This topic has been closed to new replies.

About this Topic