title: Jquery select button by name
body: <p>I don't understand how to select by name with Jquery the button "g_list".</p>
  
  <pre><code>&lt;div class="col-sm-4 sezione-na"&gt;
  &lt;div class="titolo-sezione-na"&gt;Title:&lt;/div&gt;
  &lt;div class="form-group"&gt;
      &lt;div class="col-sm-12"&gt;&lt;button name="g_list" type="button" class="btn btn-primary btn-block"&gt;Generate list&lt;/button&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I wrote this Jquery code, but it doesn't work:</p>
  
  <pre><code>$("input[name='g_list']").click(function(){
  alert( "ready!" );});
  </code></pre>