title: Reload div without refreshing main page
body: <p>first thanks for your time. I've done some research and found many useful similar questions as mine. But I still can't make this work, I have a simple form that I want to refresh when submiting, here is what I tried</p>
  
  <p>Here is my form:
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="contact" class="contact"&gt;
    &lt;div class="container"&gt;
  &lt;?php if(!empty($emailSent)): ?&gt;
      &lt;div class="col-md-6 col-md-offset-3"&gt;
        &lt;div class="alert alert-success text-center"&gt;Votre message a ete envoye avec succes.&lt;/div&gt;
      &lt;/div&gt;
  &lt;?php else: ?&gt;
  &lt;?php if(!empty($hasError)): ?&gt;
      &lt;div class="col-md-5 col-md-offset-4"&gt;
        &lt;div class="alert alert-danger text-center"&gt;Un erreur s'est produite, essayer a nouveau.&lt;/div&gt;
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
      &lt;div class="col-md-6 col-md-offset-3"&gt;
        &lt;form action="&lt;?php echo $_SERVER['REQUEST_URI']; ?&gt;" id="contact-form" class="form-horizontal" role="form" method="post"&gt;
          &lt;input type="text"  name="form-name" placeholder="Nom" /&gt;
          &lt;input type="email"  name="form-email" placeholder="Email" /&gt;
          &lt;input type="text" name="form-subject" placeholder="Objet" /&gt;
          &lt;div class="clearfix"&gt;&lt;/div&gt;
          &lt;textarea  rows="3"  name="form-message" placeholder="Message" /&gt;&lt;/textarea&gt;
          &lt;div class="sub"&gt;
            &lt;button id="envoyer" type="button" class="btn btn-default"&gt;Envoyer&lt;/button&gt;
          &lt;/div&gt;
        &lt;/form&gt;
      &lt;/div&gt;
  &lt;?php endif; ?&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is my jquery:</p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(function() {
    $("#envoyer").click(function(evt) {
       $("#contact").load("index.php")
       evt.preventDefault();
    })
  })
  &lt;/script&gt;
  </code></pre>
  
  <p>Once again thanks for your precious time !</p>