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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:35:44+00:00 2026-05-31T18:35:44+00:00

I am adding an id to an element via call to jQuery.data: $layout.nextAll(‘.imagepicker’).data(‘imgPickerId’, randomnumber);

  • 0

I am adding an id to an element via call to jQuery.data:

$layout.nextAll('.imagepicker').data('imgPickerId', randomnumber);

So my element of a class imagepicker will have [imgPickerId=randomnumbervalue] data attribute added to it.

It seems like there is a problem how I later on look for .imagepicker with exactly this imgPickerId. Where can I lookup which attributes are added to a particular element in a convenient way (excep from js code)? Maybe in firebug somewhere?

P.S. for some reason my “getter code” works in jQuery 1.6 but does not in 1.7. Still I am suspecting data isn’t being added to an element and need a way to check it.

  • 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-31T18:35:46+00:00Added an answer on May 31, 2026 at 6:35 pm

    jQuery’s data function stores everything in JavaScript, without altering the DOM in any way. I’m afraid you’ll have to use code to access it.

    A quick Google search also showed me a FireQuery plugin for Firebug, which seems to enable you to see the attached data of your elements. Haven’t tried it myself, though, so I can’t confirm that.

    Update: Tested it, and it works fine! With FireQuery all data of your elements are visible right next to the HTML:

    screenshot of FireQuery showing data attributes

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

Sidebar

Related Questions

I am adding element dynamically to DOM. $('<div class=entry></div>').text(data.status).appendTo(app.twitter_feed); I want to get element
I want to add and remove div element using jquery and adding of div
I am dynamically adding X canvas elements to a page via jQuery like so:
I am dynamically adding DOM elements via a JSON call and then I submit
I need help in adding an element at a particular location in the page
I am making an hierarchy of sorts and am having trouble adding an element
Using MongoDB, I'm having trouble adding en element to an Array when the array
if (typeof $ == undefined){ console.log($ is undefined. Adding javascript element to the document);
Is it possible—without adding an extra wrapper element—to offset the position of text in
I'm creating a media element inside a wp7 application programmatically and then I'm adding

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.