For instance, if I use this syntax here: $('#itemid1 button').on('click', function () { When will this function run? Is it when you click any button or an element with the id of itemid1 or is it when you click a button that has the itemid1 id, or something else entirely?
I think doing this: $('#itemid1, button').on('click', function () { would run a function every time you clicked a button or element with id of itemid1
Thanks for your help.