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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:11:36+00:00 2026-06-12T03:11:36+00:00

guys. I’m developing a jQuery plugin that wraps an element inside a container. So,

  • 0

guys. I’m developing a jQuery plugin that wraps an element inside a container. So, this line:

$azureRectangle.container(); //azureRectangle is only an empty div

Produces this:

enter image description here

The container is composed with many new divs. Well, here is my doubt: How should I name or identify those created divs? Should I use a data attribute or an invented id or name?

  • 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-12T03:11:37+00:00Added an answer on June 12, 2026 at 3:11 am

    Well, there are several policies for that. You certainly can use either ‘data’ or ‘rev’ attributes, but then you might have difficulties when trying to select a specific container element.

    Usually, though, wrapper (and replacer) plugins work with elements with id attribute set, so they can generate a corresponding id for the elements they create. For example:

    $.fn.somePlugin = function(someId) {
      var somePluginId = 'some-plugin-' + someId;
      ...
    }
    

    This allows both grapping all items (with '[id^="some-plugin-"]' selector) and each specific one (having an id of element which was involved in its creation).

    The same policy, of course, can be applied when more then one new element should be created; you just have to use several specific prefixes for these.

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

Sidebar

Related Questions

Guys i need someone fix this problem ? when i compile that code i
Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I
Guys I asked a similar question like this earlier since I was unable to
Guys, this can't be for real I'm trying to make a .NET 2.0 executable
guys i have a xml file which is like this: <Point TestFlag=0 id=1 name=Conversation
guys i got a php file that use it as xml for a flash
Guys, Can you please tell me that ,I wants to learn Azure , by
Guys how can i remove an input with a specific value using jquery? I
Guys i am facing a problem with wildcard character in jquery. Please help if
Guys this is driving me crazy.. I am amateur in the mod_rewrite topic.. 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.