jquery how do I exclude all divs that are not nested with a certain class name
Posted on 2010-01-11
I have a hidden div at the bottom of my page where I plan to put a div with text inputs and buttons. I am going to be dynamically cloning this and adding it to my page to make a way for users to enter more results by clicking an add button which will add a new row of inputs. This is working now. I want to add event handlers to the buttons on the newly added rows so I was thinking that I can just nest my template in a class called Template. Then when I add my event handlers, I could just search for anything that is not under a div with the class of Template.