When one of the divs inside \'uploadChoice\' is clicked, how can I ascertain which one is clicked? Can I return an \'eq\' value somehow?
An easier alternative that does not require duplicating a selector is the following
$('#uploadChoice div').click(function(event) { var index = $(this).prevAll().length; });