title: "$.getScript @href" does not get the href from a button, only from an a tag
body: <p>I am listening to a <code>button</code> and some <code>a</code> tags with this code:</p>
  
  <pre><code>$("#pagination_partial a, #order_sorting_partial a, #order_sorting_partial .organize-btn").bind("click", function() {
    $.getScript(this.href);
    history.pushState(null, "", this.href);
    return false;
  });
  </code></pre>
  
  <p>The code is supposed to get the href from the clicked element, but as of now it is only getting the href from the <code>a</code> tags. When I click the <code>organize-btn</code> the code understands that the button is clicked, but it does not assign anything to <code>@href</code>.</p>
  
  <p>What am I doing wrong? Here is the view file (HAML):</p>
  
  <pre><code>.row
      .span
          .btn-group
              %button.btn{:href =&gt; "/orders?view=#{@organize_mode}", :class =&gt; "organize-btn"}= t(".#{@organize_mode}")
              %button.btn.dropdown-toggle{"data-toggle" =&gt; "dropdown"}
                  %span.caret
              %ul.dropdown-menu
                  %li
                      %a{:href =&gt; "/orders?view=by_last_dispatch"}= t(".by_last_dispatch")
                  %li
                      %a{:href =&gt; "/orders?view=by_first_dispatch"}= t(".by_first_dispatch")
  </code></pre>