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 4107560
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:31:53+00:00 2026-05-20T21:31:53+00:00

What I am trying to achieve is a second dropdown list to be populated

  • 0

What I am trying to achieve is a second dropdown list to be populated with values based on the selection of the first dropdown list.

I’ve got it to work using the following:

http://jsfiddle.net/ydPfH/6/

The problem is that an external plug in that I am using to display images in a drop down list somehow stops this code from working properly.

The code that initalises this plug-in is $("body select").msDropDown(); and what I have below the simple search form that uses this plug-in is a jquery expandable div so you click Advanced Search to expand the form with the dynamic dropdowns.

<a href="#" rel="toggle[advancedsearch]" data-openimage="images/collapse.png" data-
closedimage="images/expand.png">Advanced Search<img id="expand" 
src="images/collapse.png"/>   </a> 
<div id="advancedsearch">
<p>Document Properties:</p>
<form>
<select id="tags" name="tags" class="tags">
etc....

What I’m hoping for is some kind of onclick or something even easier to call to another JS method to somehow remove the $("body select").msDropDown(); initialisation or to even initialise something silly that in turn removes it.

Full source of the page can be seen here if it helps: http://jsfiddle.net/pQ9LT/

Thanks,

Martin

  • 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-20T21:31:54+00:00Added an answer on May 20, 2026 at 9:31 pm

    If I’m getting this right, here is the answer:

    You should add class attributes to the <select> elements that are going to be using your msDropDown plugin. Then initialize the plugin like this $('select.yourClass').msDropDown();
    where yourClass is the class name you assigned these <select> elements.
    The body part in your selector is superflous.

    This way, jQuery will only apply the plugin to the <select> elements “marked” with you class name and not all of them so you can use the other “normal” <select> elements without interference.

    Hope I helped you out.

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

Sidebar

Related Questions

I'm trying to achieve high frame-per-second on Windows GDI by using Windows Timer Queues.
I am trying to achieve the following: Using Skype, call my mailbox (works) Enter
I am trying to achieve the same behavior as indicated in the following post.
I'm trying to achieve optimization based on deterministic behavior of a user defined function
I'm trying to achieve the following functionality. Within a form I have multiple fields
I'm trying to achieve some animation using jQuery. I have it working but I'm
first of all, I'm not good with jQuery and coding. I'm trying to achieve
I'm trying to render the list of blog posts in this layout: [first post
What I'm trying to achieve is the following. I'm (still) working on a timesheet,
I am trying to achieve better performance for my Java SWT application, and I

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.