title: Ampersand (&) character inside a value of jQuery AJAX request data option
body: <p>I am performing asynchronous HTTP (Ajax) requests via jQuery with the basic $.ajax(). The code looks like the following:</p>
  
  <pre><code>$("textarea").blur(function(){
     var thisId = $(this).attr("id");
     var thisValue = $(this).val();
  
     $.ajax({
        type: "POST",
        url: "some.php",
        data: "id=" + thisId + "&amp;value=" + thisValue,
        success: function(){
          alert( "Saved successfully!" );
        }
     });
  
  });
  </code></pre>
  
  <p><strong>Everything is working properly as usual, until user types inside <em>textarea</em> ampersand (&amp;) character.</strong> Than when I debug PHP function, which saves the value, it always have a value until this character.</p>
  
  <p>I believe there has to be a solution to skip ampersand (&amp;) somehow. Any ideas?</p>