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

  • Home
  • SEARCH
  • 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 6627549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:01:39+00:00 2026-05-25T22:01:39+00:00

I am trying to implement the jquery selectbox script. I have made all the

  • 0

I am trying to implement the jquery selectbox script. I have made all the changes needed to css and html markup and the selectbox is working and appearing fine. the problem is. It is not initializing automatically at page load.

I have to manually run $("SELECT").selectBox(); from the firebug script panel to make it work. I have tried everything from putting hte initializing command at the bottom of the page, and putting it in $(document).ready() as well. Nothing works. What am i missing?

EDIT: The code I am running involves dynamic select box generation from the server.

  • 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-05-25T22:01:40+00:00Added an answer on May 25, 2026 at 10:01 pm

    Did you initialize it before the select boxes? It has to be initialized before them. And make sure jQuery is loaded before you do anything jQuery. (duh)

    For example:

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript" src="/path/to/jquery.selectBox.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $("select").selectBox();
    });
    </script>
    
    <select name="standard-dropdown">
    <option value="1">Item 1</option>
    <option value="2">Item 2</option>
    <option value="3">Item 3 has &lt;a&gt; really long label but it won't affect the control's display at all</option>
    <option value="4">Item 4</option>
    <option value="5" disabled="disabled">Item 5 (disabled)</option>
    <option value="6">Item 6</option>
    <option value="7">Item 7</option>
    <option value="8">Item 8</option>
    <option value="9">Item 9</option>
    <option value="10">Item 10</option>
    <option value="11">Item 11</option>
    <option value="12">Item 12</option>
    <option value="13">Item 13</option>
    <option value="14">Item 14</option>
    <option value="15" selected="selected">Item 15</option>
    <option value="16">Item 16</option>
    <option value="17">Item 17</option>
    <option value="18">Item 18</option>
    <option value="19">Item 19</option>
    <option value="20">Item 20</option>
     </select>
    

    Hope this helps.

    P.S Maybe you could show us full code, or a link to where you’re having the issue?

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

Sidebar

Related Questions

I have a site where I am trying to implement a jQuery UI based
I'm trying to implement a JQuery script to process some areas inside an image
I'm working on a mobile view of our site. I'm trying to implement JQuery
I am trying to implement jquery full calendar with json event updates. I have
Good evening all, I'm trying to implement jquery table sorter, all seems fine and
I have an ASP.NET webforms application and trying to implement jQuery autocomplate on a
I'm trying to implement a validation script (bassistance) with a jquery form wizard (
since Google translate api will stop working i'm trying to implement some jquery code
I am trying to implement a slideshow using jQuery I have a button called
i'm trying to implement the jquery autocomplete plugin. I've got it up and running,

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.