title: How to send 'data' to ASMX web service via AJAX POST?
body: <p>I can successfully receive values from my web service so in that repect the script is working fine. However I am now trying to send data to the webservice using the 'data' field below. What i cant figure out is how to send a simple string (e.g. "test") to the web service which is what my web method expects as a parameter.</p>
  
  <p>Any help is much appreciated. For example:</p>
  
  <pre><code>function setQuestion() {
  $.ajax({
      type: "POST",
      **data: "{}",** //how do i use this to send a string??
      dataType: "json",
      url: "http://someURL",
      contentType: "application/json; charset=utf-8",
      success: onSuccess
  });
  }
  
  function onSuccess(msg) {
  $("#questiontxt").append(msg);
  }
  </code></pre>