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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:26:10+00:00 2026-05-27T03:26:10+00:00

Please look at this fiddle: http://jsfiddle.net/DHts6/1/ Why does it say undefined, even though the

  • 0

Please look at this fiddle: http://jsfiddle.net/DHts6/1/

Why does it say undefined, even though the id = "foo" is set!

Thanks

  • 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-27T03:26:11+00:00Added an answer on May 27, 2026 at 3:26 am

    You don’t need $(this).id, just do this.id.

    Reason for this is that $ creates a jQuery object that doesn’t have .id property. In jQuery you would use attr $(this).attr('id')

    http://jsfiddle.net/DHts6/5/

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

Sidebar

Related Questions

Possible Duplicate: .prop() vs .attr() Please take a look at this fiddle: http://jsfiddle.net/DGzvP/ $(#test).prop({
Please take a look at this fiddle: http://jsfiddle.net/d3uc9/4/ I have a problem with this,
Please take a look at this fiddle: http://jsfiddle.net/hughbe/QYGcq/ As you can see, the label
please take a look at this fiddle : http://jsfiddle.net/cX47v/1 I am simply trying to
Please look at this fiddle: http://jsfiddle.net/uNbYu/1/ When the submit button is pressed once, It
Please take a look at the fiddle: http://jsfiddle.net/Fyc5d/ Click a gray box, and you'll
Have a look at this fiddle: http://jsfiddle.net/h4VS7/ How do I make the yellow element
I'm new in Cocoa-Touch. Please look at this links: http://www.youtube.com/watch?v=Cab8CB_Lzbw http://www.youtube.com/watch?v=8c8KA1uZ9F8&feature=autoplay&list=PL6EFB1A1E5CAA7666&lf=results_main&playnext=1 I really want
Please have a look on this application http://itunes.apple.com/app/yowza-mobile-coupons/id312021877?mt=8 I just want to add custom
Please take a look at this code: class Foo { public $barInstance; public function

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.