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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:16:24+00:00 2026-06-17T20:16:24+00:00

I have dynamic content which is accessible via a index on a side pane,

  • 0

I have dynamic content which is accessible via a index on a side pane, when the user selects a side pane element, I use the id as a mechanism to figure out what data they’re referring to, so I can dynamically generate the appropriate data for the main pane.

I was just using a pre-formatted id appended with a number, where the number was the index in an array, thus making unique ids for the html tags. However in certain scenarios I will have conflicts with the numbers, so I’ve been thinking that using UUIDs would be a way to solve my problem.

However I do not know if there are any issues with using a UUID for a html tag id.

I believe the immediate and quick answer is it should work, based on my knowledge of valid characters and length limitations. Version 4 uses characters 0-9, a-z and – which, afaict are valid characters for a HTML tag id. Also the length doesn’t appear to be an issue.

My main concern is are there browser issues that limit the effective size of ids? It’s fine running a test and creating a single id with a value of 2d1b8447-e37a-43d8-9f7c-075eac7d9bcc, or even creating a test with multiple. But I cannot test all browsers that will be using the app and it’s difficult to test performance over time. My content is very dynamic and tags with these id’s can be removed and added over time

I’ve tried searching for reported issues with large tag ids and found nothing, but absence of issues via Google is not evidence of the absence of any issues.

So… has anyone used UIID’s for ids on html tags and if so, are there any issues I need to avoid that you experienced?

I should note that there is evidence that UUIDs have performance issues with indexing (InnoDB) and my concern is that DOM manipulation and using jQuery with id’s that are UUIDs may suffer similar issues.

Cheers.

  • 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-17T20:16:26+00:00Added an answer on June 17, 2026 at 8:16 pm

    Can accomplish same thing using a data- attribute.

    Example:

    <a href="#" data-UUID="2d1b8447-e37a-43d8-9f7c-075eac7d9bcc" class="product_link">Some product</a>
    

    Read data- attribute with jQuery:

    $('.product_link').click(function(){
         var UUID=$(this).data('UUID');
        /* do something with UUID*/
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have dynamic content which I generate with PHP, and i want to store
I have one table which display data as from Dynamic Content, I want to
I have one table which display data as from Dynamic Content in 1 column.
I have a dynamic page (say myFlashContainer.jsp) which renders different Flash content based on
I have some dynamic content which covers up to 3 page and I want
I have dynamic and quite large contents which needs to be populated on user
So I have this 2d dynamic array which content I want to free when
I have a jqueryui autocomplete combo-box widget in which once the user selects something
In my code I have an iFrame which loads dynamic content it's like a
I have a table which contains dynamic content so the height of each row

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.