$(‘.myclass’).attr(‘id’);
myclass is the class of the selected table cells which have unique ids. No more than 2 table cells can be selected at once by the user. I need to capture the ids of the selected table cells and assign them to var1 and var2. Users can deselect cells and choose new ones… I thought about using an array but that’s probably not the best way.
I’d go with the array option using
map(), eg