title: I can't take the value of Markdown with Jquery Serialize
body: <p>In my project im using this MarkDown .
  <a href="https://github.com/NextStepWebs/simplemde-markdown-editor" rel="nofollow">https://github.com/NextStepWebs/simplemde-markdown-editor</a></p>
  
  <p>To take the values of a form im using the Jquery Serialize , the problem is that it doesn't work with the MarkDown, with a simple Textarea my code works.</p>
  
  <p>The problem is with this ( Here there is the Markdown ).</p>
  
  <pre><code>&lt;textarea id="messaggio" name="testo"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p><strong>Script to load the markdown</strong></p>
  
  <pre><code>&lt;script&gt;
  var simplemde = new SimpleMDE({ element: $("#messaggio")[0] });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>JQUERY SERIALIZE</strong></p>
  
  <pre><code>$("#invio").click(function(){
  
      var dati = $("#form").serialize(); //recupera tutti i valori del form automaticamente
  
      //form invio dati post ajax
  
      alert(dati);
  
      //invio
      $.ajax({
      type: "POST",
      url: "/includes/inserisci.php",
      data: dati,
      dataType: "html",
      success: function(msg)
      {
      alert("Chiamata inviata con successo");
  
      },
      error: function()
      {
      alert("Chiamata fallita, si prega di riprovare...");
      }
  
      });//ajax
  
      });//bottone click
  </code></pre>
  
  <p><strong>Inserisci.php</strong></p>
  
  <pre><code>&lt;?php
  include('../core.php');
  $titolo= urldecode($_POST['titolo']); 
  $post= urldecode($_POST['testo']);
  
  
  $sql = mysql_query("")or die("Non riuscito");
  
  mysql_close();
  
  ?&gt;
  </code></pre>
  
  <p><strong>FORM</strong></p>
  
  <pre><code>&lt;form id="form" class="form-horizontal shadow-z-1" action="#" method="post"&gt;
      &lt;fieldset&gt;
          &lt;legend style="text-align: center; position: relative; top: 8px;"&gt;Inserisci un Post&lt;/legend&gt;
          &lt;hr&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="inputTitle" class="col-lg-2 control-label"&gt;Titolo&lt;/label&gt;
              &lt;div class="col-lg-10"&gt;
                  &lt;input type="text" class="form-control" id="inputText" name="titolo" placeholder="Scrivi qui il Titolo"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="textArea" class="col-lg-2 control-label" &gt;Messaggio&lt;/label&gt;
              &lt;div class="col-lg-10"&gt;
                  &lt;textarea id="messaggio" name="testo"&gt;&lt;/textarea&gt;
              &lt;/div&gt;
              &lt;/div&gt;
  
             &lt;div class="form-group is-empty is-fileinput"&gt;
                  &lt;label for="inputFile" class="col-md-2 control-label"&gt;File&lt;/label&gt;
  
                  &lt;div class="col-md-10"&gt;
                    &lt;input type="text" readonly="" class="form-control" placeholder="Browse..." pmbx_context="19E61A0C-3526-4E51-8535-935982C4C335"&gt;
                    &lt;input type="file" id="inputFile" multiple="" pmbx_context="1D2BCAEA-08CC-476A-8F4A-EF6BD51B9102"&gt;
                  &lt;/div&gt;
                &lt;span class="material-input"&gt;&lt;/span&gt;&lt;/div&gt;
  
          &lt;div class="col-md-10 col-md-offset-2"&gt;
                    &lt;button type="button" class="btn btn-default" onclick="document.getElementById('modalposta').style.display = 'none';"&gt;Cancel&lt;/button&gt;
                     &lt;button type="submit" class="btn btn-primary" id="invio" onClick="nascondiform();return false;"&gt;Submit&lt;/button&gt;
                    &lt;!--&lt;button type="submit" class="btn btn-primary" onClick='send(); return false;' &gt;Submit&lt;/button&gt;--&gt;
                  &lt;/div&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>