title: Safari on Windows only: TypeError: 'undefined' is not a function (evaluating 'this.$el.find(".icon-search").get(0).click()')
body: <p>I would like to submit a HTML form when the search field is active and the enter button is hit. The line below (this.$el.find('.icon-search').get(0).click();) works fine in every browser. In safari though I get an error.</p>
  
  <pre><code>  init: function() {
        if(!this.$el.hasClass('block-wheretobuy-map')){
          this.setEventHandlers();
        }
  
    },
  
    setEventHandlers: function() {
        _.bindAll(this, "onFormSubmit", "_on_keydown");
        this.$el.find('.icon-search').click( this.onIconClick );
        this.$el.find('#frm_city').keydown( this._on_keydown );
    },
  
    _on_keydown: function(event){
      if(event.keyCode == 13){
        this.$el.find('.icon-search').get(0).click();
      }
    },
  
    onIconClick: function ( event ){
        var url = $(this).attr('href');
        if (url.indexOf("?") &gt;= 0) {
            url = url + '&amp;l=';
        } else {
            url = url + '?l=';
        }
        url = url + $('#frm_city').val();
      $(this).attr('href', url);
    },
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="block block-border block-wheretobuy "&gt;
      &lt;div class="block-background"&gt;&lt;/div&gt;
      &lt;h1 class="primary"&gt;Where to buy &lt;/h1&gt;
      &lt;p&gt;Find a store near you&lt;/p&gt;
      &lt;div class="fieldset search"&gt;
          &lt;div class="placeholder" rel="commain_1comblockcontainertwocolumns_0$frm_city"&gt;&lt;span&gt;City, Postcode&lt;/span&gt;&lt;/div&gt;&lt;input name="commain_1comblockcontainertwocolumns_0$frm_city" type="text" id="frm_city" class="field field-search" placeholder="" autocomplete="off"&gt;
          &lt;a href="/en/where-to-buy" class="icon-search tst-search"&gt;&lt;/a&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Error in Safari:</p>
  
  <blockquote>
    <p>Safari TypeError: 'undefined' is not a function (evaluating
    'this.$el.find(“.icon-search”).get(0).click()')</p>
  </blockquote>