title: $('#' + CommentBoxId).val(); not picking up
body: <p>User enters data in comment box and clicks corresponding submit btn.  Im trying to pass id, CompanyId, WorkId, CommentBoxId to code behind to update the record.  So far this all works fine, but I also want to pass the data entered in the commentbox.</p>
  
  <pre><code>JavaScript runtime error: Sys.Net.WebServiceFailedException: The server method 'CommentBox' failed with the following error: System.InvalidOperationException-- Invalid web service call, missing value for parameter: 'CommentBoxContents'.
  </code></pre>
  
  <p>The values of id, CompanyId, WorkId and CommentBoxId, are all passed correctly. so how can i pass what is entered in the text box?
  thank you</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
     var commentBoxData
     function SubmitButton(id, CompanyId, WorkId, CommentBoxId) 
     {
         var commentBoxData = $('#'+CommentBoxId).val();
          Functions.CommentBox(id, CompanyId, WorkId, commentBoxData);
     }
  &lt;/script&gt;
  </code></pre>
  
  <p>//Inside a repeater:</p>
  
  <pre><code>&lt;th style="width:200px;"&gt;
       &lt;input id="Comments" name='&lt;%# GetIdOfCommentBox((int)Eval("id")) %&gt;' 
               type="text" runat="server" value='&lt;%# Bind("Comment") %&gt;' /&gt;
      &lt;input id="SubmitComments" type="button"
             onclick="SubmitButton('&lt;%# Eval("id") %&gt;','&lt;%# Eval("CompanyId") %&gt;',
                          '&lt;%# Eval("WorkId") %&gt;','&lt;%# Eval("CommentId") %&gt;');"  /&gt;
  &lt;/th&gt;
  </code></pre>