jQuery UI Widgets Forums Lists DropDownList Best way to add a Label to a dropdown?

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Best way to add a Label to a dropdown? #48360

    realtek
    Participant

    Hi,

    I have a dropdownlist but because the way jqwidgets uses div’s. What is the best way to add a label next to the dropdownlist?

    For example, I have tried this:

    <h1 class=”itemtitle”>Themes</h1>
    <span>Global Theme:</span><div style=”display:inline-block” ID=”divThemeSelection”></div>

    But it doesn’t display correctly… I don’t think you can use <label> wrapped around a div.

    What is the recommended approach for this? (i’m sure its simple!)

    Thanks!

    Best way to add a Label to a dropdown? #48366

    Peter Stoev
    Keymaster

    Hi realtek,

    There are multiple ways. May be the easiest is to use “float: left;”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.