When one of the divs inside \'uploadChoice\' is clicked, how can I ascertain which one is clicked? Can I return an \'eq\' value somehow?
You can add selectors as well, and pass "$(this)" as argument:
$(document).on('click', 'button.testbutton', function () { var index = $('div.example > div.xyz').find('button.testbutton').index($(this)); });