Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8521345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:47:52+00:00 2026-06-11T06:47:52+00:00

Bit of a daft question but I’ve downloaded the JqueryUI selectmenu widget and it

  • 0

Bit of a daft question but I’ve downloaded the JqueryUI selectmenu widget and it isn’t working even though Firebug shows the relevant CSS and JavaScript files being loaded.

Script on page:

<script type="text/javascript">
   $('#brand_color').selectmenu({style:'popup'});
</script>

Generated form markup:

<label for="brand_color">Color</label><br />
<select id="brand_color" name="brand[color]">
   <option value="red">red</option>
   <option value="green">green</option>
   <option value="blue">blue</option>
   <option value="black">black</option>
</select><br />

Rails form code:

<%= f.label :color %><br />
<%= f.select(:color, Brand::COLORS) %><br />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:47:54+00:00Added an answer on June 11, 2026 at 6:47 am

    Hi It definitely has to do with including all the required scripts. It is a little hard to tell exactly what you need from this demo, but I made sure to include all the same scripts and made an example: http://jsfiddle.net/8WWMT/7/

    here are all the scripts:

    <link rel="stylesheet" href="http://view.jqueryui.com/selectmenu/themes/base/jquery.ui.all.css">
    <script src="http://view.jqueryui.com/selectmenu/jquery-1.8.0.js"></script>
    <script src="http://view.jqueryui.com/selectmenu/ui/jquery.ui.core.js"></script>
    <script src="http://view.jqueryui.com/selectmenu/ui/jquery.ui.widget.js"></script>
    <script src="http://view.jqueryui.com/selectmenu/ui/jquery.ui.position.js"></script>
    <script src="http://view.jqueryui.com/selectmenu/ui/jquery.ui.menu.js"></script>
    <script src="http://view.jqueryui.com/selectmenu/ui/jquery.ui.selectmenu.js"></script>
    <link rel="stylesheet" href="http://view.jqueryui.com/selectmenu/demos/demos.css">​
    

    Also you have to make sure that you JS is called after your HTML elements are rendered. You can either do this by positioning your <script> tag after you HTML elements, like this. Or by enclosing the JS inside the $(function(){});, like this:

    <script type="text/javascript">
        $(function(){
            $('#brand_color').selectmenu({style:'popup'});
        });
    </script>
    

    http://jsfiddle.net/8WWMT/10/

    notice how the styling does not work if you put the script part above the HTML elements without using the $(function(){}); (ready function): http://jsfiddle.net/8WWMT/11/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be a bit of daft question, but I don't come from an
This is a bit of a daft question, but out of curiousity would it
Apologies if this question is a bit daft, but are there any negative repercussions
Bit of an unusual question, but I have setup a field inside a MySQL
Bit of a strange question here i know. but i wanted to know if
Bit of an odd question but is there a way of seeing what objects
Bit of a dumb question, but I'm wondering what the accepted way of passing
Bit of an odd question but I'm hoping someone can point me in the
Bit of a strange problem here... I've got an update query that isn't working,
bit of a silly question perhaps. But I want to understand why the syntax

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.