title: Ajax Call replace single quote jquery
body: <pre><code>function RejectItem(link, compqID, comments, officerID) {
      if ($(link).parent().find("div.divComments").is(":visible")) {
          $.ajax({
              type: "POST",
              url: "../contentService.asmx/RejectComplianceItem",
              data: "{ 'compqID': '" + compqID + "', 'comments': '" + $(link).parent().find("div.divComments").find('.taComments').val() + "', 'officerID': '" + officerID + "'}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function(msg) {
                  hideRow(compqID);
              }
          });
      } else {
          $(link).parent().find("div.divComments").show();
      }
  }
  </code></pre>
  
  <p>Whenever <code>($(link).parent().find("div.divComments").find('.taComments').val())</code> returns a value that has single quote in this function, it fails.</p>
  
  <p>Any fix?</p>