title: Sweet Alert box i add 4 buttons onely one button is working
body: <p>Sweet Alert box I add 4 buttons only one button is working. The 4 buttons pointing to the same box and same div the problem is the first button when we click, the popup comes the second button popup not coming how to fix this issue?</p>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>document.querySelector('ul.examples li.input button').onclick = function(){
      swal({
          title: "An input!",
          text: 'Write something interesting:',
          type: 'input',
          showCancelButton: true,
          closeOnConfirm: false,
          animation: "slide-from-top",
          inputPlaceholder: "Write something",
      },
      function(inputValue){
          if (inputValue === false) return false;
  
          if (inputValue === "") {
              swal.showInputError("You need to write something!");
              return false;
          }
  
          swal("Nice!", 'You wrote: ' + inputValue, "success");
  
      });
  };
  </code></pre>
  
  <p><strong>HTML:</strong>    </p>
  
  <pre><code>    &lt;html&gt;
        &lt;head&gt;
          &lt;script src="https://code.jquery.com/jquery-2.1.3.min.js"&gt;&lt;/script&gt;
  
          &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"&gt;&lt;/script&gt;
          &lt;link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css"&gt;
  
        &lt;/head&gt;
        &lt;body&gt;
  
        &lt;ul class="examples"&gt;
          &lt;li class="input"&gt; &lt;div class="ui"&gt; &lt;button&gt; 1 &lt;/button&gt; &lt;/div&gt; &lt;/li&gt; &lt;br&gt; 
          &lt;li class="input"&gt; &lt;div class="ui"&gt; &lt;button&gt; 2 &lt;/button&gt; &lt;/div&gt; &lt;/li&gt; &lt;br&gt; 
          &lt;li class="input"&gt; &lt;div class="ui"&gt; &lt;button&gt; 3 &lt;/button&gt; &lt;/div&gt; &lt;/li&gt; &lt;br&gt; 
          &lt;li class="input"&gt; &lt;div class="ui"&gt; &lt;button&gt; 4 &lt;/button&gt; &lt;/div&gt; &lt;/li&gt; &lt;br&gt; 
          &lt;/ul&gt;
        &lt;/body&gt;
      &lt;/html&gt;
  
  &lt;!-- end snippet --&gt;
  </code></pre>