suppose i have a .on()
function wherein i select multiple ids
$("#i, #am, #your, #father").on("click" , function(event){
//iterate over the selectors and return tagname
alert ( $("#i").prop("tagName") );
alert ( $("#am").prop("tagName") );
alert ( $("#your").prop("tagName") );
alert ( $("#father").prop("tagName") );
}
the only method that i can think of is to alert each one separately. is there a known method for handing the $("#i, #am, #your, #father")
as a sort of array?