title: Jquery show alert after click submit button
body: <p>Let's say I have a form like following:</p>
  
  <pre><code>&lt;form name="add" method="post" action="add.php?action=add" enctype="multipart/form-data"&gt;
  ...
  &lt;input type="submit" name="add" id="add" value="ADD"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My question is how do I show the "Form submitted" after I click ADD button using jQuery? <br />Here is what I have tried (I'm using Jquery 1.11.1):</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function(){
      $("#add").submit(function(){
          alert("Form submitted");
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Am I write correct? Or any other ways to write it?</p>