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 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 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
Adding an element to the head of an alist (Associative list) is simple enough:
I've always been told that adding an element to an array happens like this:
I am adding elements to an XML file during installation using the XmlFile element:
I'm adding and removing <li> elements with jQuery, that are shown horizontally with the
I have a form I'm floating. When there is an error, via jquery, I'm
I have a form. Initially an input element has the class unfilled. As the
I'm adding a box shadow to an element containing an img and it's creating
I am having some problems. Basically I am adding images which are loaded via

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.