title: jQuery Ajax request to Web Method
body: <p>I am trying to send data to my code behind method. It works except when I add to the <code>data</code> param.</p>
  
  <pre><code>function (obj) {
     $.ajax({
         type: "POST",
         url: "Pages.aspx/EditPage",
         data: "{'nodeID': '" + $(this).attr('id') + "'}",
         contentType: "application/json; charset=utf-8",
         dataType: "json",
         success: function (msg) {
                 // Replace the div's content with the page method's return.
         }
       });
      }
  </code></pre>
  
  <p>Why is the param i added causing the Web Method to not get hit?</p>
  
  <p>UPDATE: After seeing what client side errors were being thrown it seems that the ID is undefined. Is my method of getting the elements ID incorrect? Keep in mind I am using jsTree and ca I possibly use (obj)?</p>