Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Ian Svoboda
Ian Svoboda
16,639 Points

Add to Cart input inside lightbox does not work

I am working on my test site and I'm having a problem with the add to cart function in my product list.

Things to know

+All content on page is inside a <form> tag. This is by design and while not ideal, is the way this shopping cart is setup and it cannot be changed. +The markup for the add to cart button is system generated and similarly cannot really be changed manually (minor exceptions excluded)

I've configured the product lists to show images and then reveal additional product details inside a lightbox (powered by Nivo Lightbox by Dev 7 Studios). The problem is that the add to cart function does not work and I cannot figure out why.

This can be tested by visiting the following URL: http://www.falcontechjax.com/inactive.aspx?theme=170

To replicate:

View the item that is top-right (or second) in the list.

Any help is appreciated.