I have a set of div's with jQuery event click. I'm not sure how to compare the div's clicked if they have the same icon class. I have a div already selected, if the user clicks another div in the same container I want to apply another event if it has similar icons comparing the classes of the icons if they are the same.
Ex:
Div1 selected has <i class="fa fa-bicycle"></i>
Div2 when clicked should compare to div1 if it also has <i class="fa fa-bicycle"></i>
but I do not know how to make that comparison in jQuery