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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:54:15+00:00 2026-06-04T08:54:15+00:00

Looks like i have a strange problem. I’m creating a select menu and assigning

  • 0

Looks like i have a strange problem. I’m creating a select menu and assigning it to some plugin named select menu

$('#selectCombo').selectmenu({style:'dropdown'});

After assigning it to it.. I couldn’t hide it, or set an option as selected. I tried this

$('<option value='+ret.cId+' selected=true>'+ret.cName+'</option>').appendTo('#selectCombo');   
    $('#selectCombo').selectmenu({style:'dropdown'});   

Its working but it is showing another instance of dopdown below the original one. I tried removing class attribute but it hasn’t worked. Is there any way.. plz help

  • 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-04T08:54:16+00:00Added an answer on June 4, 2026 at 8:54 am

    Custom Select Menus normally create a <div> structure of the original <select> element to allow custom styling.

    That means that the custom select menu won’t know about the changes you’ve made to the original <select>.

    Call .selectmenu('destroy') before calling .selectmenu({style: 'dropdown'}); again.

    i.e.

    var newOption = $('<option value='+ret.cId+' selected=true>'+ret.cName+'</option>');
    $('#selectCombo').append(newOption).selectmenu('destroy').selectmenu({style:'dropdown'});
    

    Here’s an example.

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

Sidebar

Related Questions

Here's an interesting problem: I have some jQuery that looks like this: $(document).ready(function() {
I have a strange problem which I have been trying to fix for some
I have some sort of a strange problem, I have an update panel which
I've got a strange problem here. Assume that I have a class with some
I have some strange problem. I think I followed documentation correctly but my code
I would like to have a table header that looks like the image shown
here is what my code looks like i have two forms: class Form_1 extends
I have a varchar field that looks like (sadly I have no control over
Looks like operator new and operator new[] have exactly the same signature: void* operator
It looks like JavaScript does not have access to authentication cookies ('ASP.NET_SessionId', '.ASPXFORMSAUTH') in

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.