Try Mentor AI — Free Pilot! Get instant, personalized help while you learn. Be among the first to explore it and shape what comes next. JOIN NOW

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • yannis sousanis
    yannis sousanis
    7,199 Points

    need help here

    Posted October 28, 2017 8:06am by yannis sousanis
    yannis sousanis
    7,199 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Joshua szkodlarski
    Joshua szkodlarski
    8,604 Points

    nothing will work

    Posted July 7, 2017 2:48am by Joshua szkodlarski
    Joshua szkodlarski
    8,604 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Saud ALQahtani
    Saud ALQahtani
    7,842 Points

    On line 15 of app.js, I am trying to see if the parent of the link has the class of '.selected' but it isn't working. He

    Posted June 30, 2017 11:45am by Saud ALQahtani
    Saud ALQahtani
    7,842 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Taran Albury
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Taran Albury
    Front End Web Development Techdegree Student 5,702 Points

    Any suggestions

    Posted February 14, 2017 11:05pm by Taran Albury
    .a{fill-rule:evenodd;}techdegree
    Taran Albury
    Front End Web Development Techdegree Student 5,702 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • vsiddharthverma
    vsiddharthverma
    3,182 Points

    why do we need to make 'selected' as true?

    Posted December 29, 2016 12:37am by vsiddharthverma
    vsiddharthverma
    3,182 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    3 Answers

  • vsiddharthverma
    vsiddharthverma
    3,182 Points

    "This" always confuse me -why we got the text from anchor, we still have to use $option.val($anchor.attr("href"))

    Posted December 28, 2016 3:45am by vsiddharthverma
    vsiddharthverma
    3,182 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    3 Answers

  • Matthew Gromer
    Matthew Gromer
    8,334 Points

    The '." in 'selected' is redundant, but there's no "."!

    Posted June 29, 2016 2:53am by Matthew Gromer
    Matthew Gromer
    8,334 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Chase Prescott
    Chase Prescott
    10,109 Points

    Help please

    Posted March 15, 2016 1:44pm by Chase Prescott
    Chase Prescott
    10,109 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    2 Answers

  • Dan Gabriel Valeriu Voineag
    Dan Gabriel Valeriu Voineag
    3,797 Points

    How do I download files from workspaces?

    Posted November 19, 2015 5:41pm by Dan Gabriel Valeriu Voineag
    Dan Gabriel Valeriu Voineag
    3,797 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    2 Answers

  • Matthew Lunalover
    Matthew Lunalover
    4,171 Points

    I called `prop` and passed in the parameters of `'selected'` and `true` but it is still not passing.

    Posted November 9, 2015 1:09am by Matthew Lunalover
    Matthew Lunalover
    4,171 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • MUZ140989 Eukael Mbuyisa
    MUZ140989 Eukael Mbuyisa
    6,395 Points

    On line 15 of app.js, I am trying to see if the parent of the link has the class of '.selected' but it isn't working. He

    Posted October 8, 2015 5:39am by MUZ140989 Eukael Mbuyisa
    MUZ140989 Eukael Mbuyisa
    6,395 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • analyn jane calado
    analyn jane calado
    3,523 Points

    stack here!!

    Posted September 26, 2015 8:41am by analyn jane calado
    analyn jane calado
    3,523 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Robert Booth
    Robert Booth
    2,290 Points

    On line 15 of app.js, I am trying to see if the parent of the link has the class of '.selected' but it isn't working. He

    Posted August 3, 2015 7:18pm by Robert Booth
    Robert Booth
    2,290 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    2 Answers

  • Ying Liang
    Ying Liang
    2,403 Points

    I am a little confused about .attr() and .prop(). What are the differences between them?

    Posted June 3, 2015 4:43pm by Ying Liang
    Ying Liang
    2,403 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • MUZ140575 Olisa Magaso
    MUZ140575 Olisa Magaso
    5,658 Points

    challenge 1 of2 on line 15 of apps.js , l am trying to see if the parent of the link has the class of selected

    Posted May 20, 2015 12:26pm by MUZ140575 Olisa Magaso
    MUZ140575 Olisa Magaso
    5,658 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    2 Answers

  • Russ Fleharty
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Russ Fleharty
    Python Web Development Techdegree Student 10,815 Points

    Stuck on a code challenge could anyone help me out?

    Posted February 16, 2015 4:27pm by Russ Fleharty
    .a{fill-rule:evenodd;}techdegree
    Russ Fleharty
    Python Web Development Techdegree Student 10,815 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Shariq Shaikh
    Shariq Shaikh
    13,945 Points

    I'm still having trouble understanding how jquery prop method works, can anyone explain?

    Posted September 13, 2014 12:10am by Shariq Shaikh
    Shariq Shaikh
    13,945 Points
    • HTML
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

  • Jason Butler
    Jason Butler
    12,394 Points

    Creating a mobile drop down box

    Posted June 3, 2014 2:08am by Jason Butler
    Jason Butler
    12,394 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    0 Answers

  • Kamila Mielczarek
    Kamila Mielczarek
    3,294 Points

    What's the difference between "prop" used here and "attr"?

    Posted May 29, 2014 8:25pm by Kamila Mielczarek
    Kamila Mielczarek
    3,294 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    0 Answers

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    Javascript: confused about quotes

    Posted May 13, 2014 11:09am by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Mobile Drop Down Menu
    • Using parent(), hasClass() and prop()

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.