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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:03:47+00:00 2026-05-24T04:03:47+00:00

I am working with the jquery UI spinoff plugin selectmenu from this github and

  • 0

I am working with the jquery UI spinoff plugin selectmenu from this github and the documentation lists something that I’m having a difficult time …. $.wrapping my head around.

wrapperElement: “”, Wraps all added elements into a HTML tag. $.wrap parameters accepted.

I don’t entirely understand what is going on here. I discovered it because I was trying to find a way to place an id="" attribute on the ul that the plugin generates so that I can use more specific skinning on a per-needed basis. I tried passing in a jQuery selector and it required the element to already exist, which is counter to what I want to do. So I would write..

$(selector).selectmenu({
   wrapperElement: $('#uniqueSelect')
});

And my code turns out as ..

<select ... >
<div id="uniqueSelect">
   <a class="ui-selectmenu ... ">
</div>

(other parts of the html document)

<div id="uniqueSelect">
   <ul class="ui-selectmenu-menu ...">
      <li>...</li>
   </ul>
</div>

But what I want to output is ..

<select ... >
<a class="ui-selectmenu ... ">

(other parts of the html document)

<div id="uniqueSelect">
   <ul class="ui-selectmenu-menu ...">
      <li>...</li>
   </ul>
</div>

Can anyone offer some insight on what this mysterious wrapperElement is and how I can make it do this?

  • 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-24T04:03:48+00:00Added an answer on May 24, 2026 at 4:03 am

    Based on @Matt’s comment, I think you just need to set your selector properly:

    $('ul.ui-selectmenu-menu').selectmenu({
      wrapperElement: $('#uniqueSelect')
    });
    

    The link to the jQuery API documentation on wrap that @Matt mentions should help you out.

    I’m not sure what your current selector is, so I’m making an assumption here.

    Hope this helps.

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

Sidebar

Related Questions

I'm working with jQuery for the first time and need some help. I have
I'm currently working on a jQuery plugin and I'm wondering if it would be
Working jQuery, what I'd like to perform is something similar to the following: $('sometag').children().wrap('<div></div>');
On IE I can do this with the (terribly non-standard, but working) jQuery if
Working against jQuery 1.3.2 I'm looking for best practices that implement the typical '
Is there a working jQuery plugin (or a javascript 'library') for formatting datetimes? I
I am trying to find a working jQuery image preloader that plays well with
I am working with jQuery tabs and I've got some code that fires off
Im working with jQuery. I have an app that makes ajax requests to server
I'm working with jQuery's .get() function and I'm having a very weird problem using

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.