title: can click one button at the time jquery
body: <p>let's say I have two buttons, and when I click on button1 for example I want the button2 to be disabled, and same thing for clicking a button2 being button1 disabled. I want one button to be clickable at the time.How can I do this ? thanks in advance.</p>
  
  <pre><code>&lt;div class="container"&gt;
  
  &lt;button type="button" id="button1" class="buttons"&gt;button1&lt;/button&gt;
  &lt;button type="button" id="button2" class="buttons"&gt;button2&lt;/button&gt;
  
  &lt;/div&gt;
  
  
  $( document ).ready(function() {
    $( "buttons" ).click(function() {
  
    });
  });
  </code></pre>
  
  <p>I was thinking about using <code>.attr('disabled', true)</code>  </p>