title: jQuery ajax, send data
body: <p>i'm having a problem sending the option selected with ajax.</p>
  
  <p><strong>Code</strong>:</p>
  
  <pre><code>$("#editarConta").on('submit',(function(e) {
  
          e.preventDefault();
  
          $.ajax({
              url: "includes/php/class_conta.php",
              type: "POST",
              data: new FormData(this),
              contentType: false,
              cache: false,
              processData:false,
              success: function(resultado){
                  $("#accountEdit_result").html(resultado);
              }
          });
  
      }));
  </code></pre>
  
  <p>Sending this data i can't see what option was selected. Is any way i can send this data, plus the selected option like:</p>
  
  <pre><code>data: { new FormData(this) , optionSelected: $( "#linguagem_favorita option:selected" ).val() },
  </code></pre>
  
  <p><strong>My select HTML code</strong>:</p>
  
  <pre><code>&lt;select name="linguagem_favorita" id="linguagem_favorita" class="form-control"&gt;
  </code></pre>
  
  <p>If i send with my code i get <strong>NULL</strong> when i var_dump the variable</p>
  
  <pre><code>var_dump($_POST["linguagem_favorita"]);
  </code></pre>