Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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.