First, I am printing a catalog of items from my xml database onto the page. For each record, I am printing the name of the item, the price and a checkbox. The checkbox is ofcourse <input type='checkbox' id=''/> The id value is the corresponding id number of the item.
What I would like is that the user selects an item on the catalog, by clicking the checkbox next to the name & price and then clicking an Add to cart button.
How do I accomplish this using getElementBySelector??