Comparing a clicked views-row in a loop
I think you're making that a bit harder than it needs to be...if I understand you right anytime a row is clicked you want to identify that row, extract a field from it and display it in a modal?

If so something like this would be a bit simpler:

(function($) {
  $(function() {
    $('.views-row').click(function() {
      // Find the modal within this row and show it.
      $(this).find('.forModal').modal();
    });
  });
})(jQuery);


Sorry if I've mis-understood what you're looking for, I wasn't 100% sure.