Learn about our new Community Discord server here and join us on Discord here!

Jump into our new React Basics course 😎

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

Probe The AI Multiverse: Exploring the Subfields of Artificial Intelligence 😮

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

Learn about our new Community Discord server here and join us on Discord here!

🤖 Check out all our AI content here 👀

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • Egor Banshchikov
    Egor Banshchikov
    4,736 Points

    "Task 1 is no longer passing" after I complete Task 2

    Posted July 12, 2016 5:59pm by Egor Banshchikov
    Egor Banshchikov
    4,736 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    1 Answer

  • Juan Pino
    Juan Pino
    25,106 Points

    On line 6 in the app.js file, prevent the browser's default behavior by calling the method we used on the event object.

    Posted May 6, 2016 1:12am by Juan Pino
    Juan Pino
    25,106 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    1 Answer

  • J V
    J V
    5,519 Points

    On line 7, set href to be the value of the href attribute of the clicked link?

    Posted February 10, 2016 9:14pm by J V
    J V
    5,519 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    2 Answers

  • Werner Chao
    PLUS
    Werner Chao
    Courses Plus Student 1,951 Points

    Difference between ID and class

    Posted January 13, 2016 12:20pm by Werner Chao
    Werner Chao
    Courses Plus Student 1,951 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    2 Answers

  • Francis N
    Francis N
    10,376 Points

    The instructions should be "line 8" because you added an event.preventDefault(); in previous challenge task on "line 7".

    Posted December 10, 2015 8:10pm by Francis N
    Francis N
    10,376 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    1 Answer

  • Garvit Sharma
    Garvit Sharma
    2,683 Points

    how to call defaultprevent??

    Posted August 7, 2015 10:05am by Garvit Sharma
    Garvit Sharma
    2,683 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    2 Answers

  • MUZ140817 David Mvumira
    MUZ140817 David Mvumira
    5,233 Points

    On line 6 in the app.js file, prevent the browser's default behavior by calling the method we used on the event object.

    Posted June 22, 2015 11:18am by MUZ140817 David Mvumira
    MUZ140817 David Mvumira
    5,233 Points
    • CSS
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    4 Answers

  • Rachel Alexander
    Rachel Alexander
    4,425 Points

    jQuery lightbox code challenge

    Posted June 16, 2014 3:34am by Rachel Alexander
    Rachel Alexander
    4,425 Points
    • JavaScript
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    2 Answers

  • Xander Taylor
    Xander Taylor
    12,390 Points

    Can't get answer right, question 2 of 2

    Posted April 21, 2014 11:46pm by Xander Taylor
    Xander Taylor
    12,390 Points
    • HTML
    • jQuery Basics (2014)
    • Creating a Simple Lightbox
    • Preventing the Default Behavior and Using attr()

    3 Answers

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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.