title: Jquery Logout Confirmation on button click in php
body: <p>I am trying to make a jQuery logout confirmation alert box  with a Html button click in php. 
  But it's not working</p>
  
  <p>Jquery <br></p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          $("logout").submit(function(){
              if(confirm("Are you sure want to exit ?")){
                  return true;
              }
              return false;
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="submit" name="logout" id="logout"  value="Log Out" /&gt;
  </code></pre>