JSFiddle - React, Tailwind, and code Playground

HTML

<div class="pane-content">
    <div class="view view-banner-ad-template-by-business-type view-id-banner_ad_template_by_business_type view-display-id-block view-dom-id-325c4b95ef8c8e632bd0e2328d03bf6b">
        
  
  
      <div class="view-content">
      <table class="views-view-grid cols-3">
  <tbody>
          <tr class="row-1 row-first">
                  <td class="col-1 col-first">
              
  <div class="views-field views-field-field-banner-ad-template-image banner-ad-option preferred-banner-ad">        <div class="field-content"><a href="#81415"><img width="180" height="150" alt="" src="http://www.itc21.com/img/whitebackground/lounger.jpg" typeof="foaf:Image"></a></div>  </div>          </td>
                  <td class="col-2">
              
  <div class="views-field views-field-field-banner-ad-template-image banner-ad-option ">        <div class="field-content"><a href="#79729"><img width="180" height="150" alt="" src="http://www.itc21.com/img/whitebackground/side%20table.jpg" typeof="foaf:Image"></a></div>  </div>          </td>
                  <td class="col-3 col-last">
              
  <div class="views-field views-field-field-banner-ad-template-image banner-ad-option ">        <div class="field-content"><a href="#81412"><img width="180" height="150" alt="" src="http://www.itc21.com/img/whitebackground/3lounger.jpg" typeof="foaf:Image"></a></div>  </div>          </td>
              </tr>
          <tr class="row-2 row-last">
                  <td class="col-1 col-first">
              
              </tr>
      </tbody>
</table>
    </div
  
</div>  </div>

<select class="form-select" name="field_banner_ad_preferred[0][field_banner_ad_preferred][und]" id="edit-field-banner-ad-preferred-0-field-banner-ad-preferred-und"><option value="_none">- None -</option><option value="78475">Food &amp;amp; Dining - Wineries &amp;amp; Vineyards | Wineries&amp;amp;Vineyards300x250A.gif</option><option value="78476">Food &amp;amp; Dining - Wineries...

JavaScript

$(document).ready(function(){
    $('img').click(function(e) {
      var hash = $(this).closest('a').attr('href').substr(1);//'78475';
      //console.log(hash, $(this), e);
        $("select").find('option').attr("selected",false) ;

        console.log(hash);
        //$('select').find('option[value="'+hash+'"]').attr('selected', true);
//$('select option').val(hash).attr('selected', 'selected');
 //       $('#id=edit-field-banner-ad-preferred-0-field-banner-ad-preferred-und option').eq(hash).attr('selected','selected');
        $("select option[value="+hash+"]").attr("selected", true);

        

        console.log( 'item selected -> ' + $('select').val() );
    });
});