title: Confirm delete with popup window
body: <p>I am trying to create a .php file that delete database rows with a popup window that confirm  the action.
  I know that are a dozen of examples, but after meany tries do to that I was not able do that, because I haven't knowledge about javacript. 
  After some researches I found this(<a href="http://myclabs.github.io/jquery.confirm/" rel="nofollow">link</a>) example source code github <a href="https://github.com/myclabs/jquery.confirm" rel="nofollow">link</a>.</p>
  
  <p>Here is a simplified code that I have managed to "create", but I only get the popup windows when I click on delete action of Item I on the other buttons the action is executed immediately. Could someone help me with this?!</p>
  
  <p>
  </p>
  
  <p>
      </p>
  
  <pre><code>&lt;title&gt;Title&lt;/title&gt;
  
  &lt;link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet"&gt;
  &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="../jquery.confirm.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <pre><code>&lt;div class="container"&gt;
  
      &lt;table class="table"&gt;
  
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th class="col-lg-3"&gt;#&lt;/th&gt;
                  &lt;th class="col-lg-1"&gt;Name&lt;/th&gt;
                  &lt;th class="col-lg-8"&gt;Action&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
  
          &lt;tbody&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;1&lt;/td&gt;
                  &lt;td&gt;Item 1&lt;/td&gt;
                  &lt;td&gt;&lt;a id="simpleConfirm" href="index.php?action=delete&amp;id=1" class="btn btn-primary"&gt;Delete&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;2&lt;/td&gt;
                  &lt;td&gt;Item 2&lt;/td&gt;
                  &lt;td&gt;&lt;a id="simpleConfirm" href="index.php?action=delete&amp;id=2" class="btn btn-primary"&gt;Delete&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;3&lt;/td&gt;
                  &lt;td&gt;Item 3&lt;/td&gt;
                  &lt;td&gt;&lt;a id="simpleConfirm" href="index.php?action=delete&amp;id=3" class="btn btn-primary"&gt;Delete&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
          &lt;/tbody&gt;
  
      &lt;/table&gt;
  
      &lt;script&gt;
          $("#simpleConfirm").confirm();
      &lt;/script&gt;
  
  &lt;/div&gt;
  
  &lt;script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>
  </p>