title: change the caption regularly in jqGrid on gave sumbit button? on ($(document).ready(function())
body: <p>in my project i have to display the selected state as a caption in jqGrid. but <code>$(document).ready(function()</code> show the first value only in the jqGrid. how i change the next value in the jqGrid on the (<code>$(document).ready(function()</code>).</p>
  
  <p><code>$(document).ready(function()</code>, it will load the first condition only how i can get the next values.</p>
  
  <pre><code>$(document).ready(function(){
  
      current_search = $('#search_type').val();
      var Statevalue = $('#stateId').val(); 
      alert('ss'+Statevalue);
      var tableheadings="";
  
      if(Statevalue=='MD')
      {
          tableheadings = 'Maryland' ;
      }
      else if(Statevalue=='DC')
      {
          tableheadings= 'District Of Columbia';
      }else
      {
          tableheadings='Virginia';
      }
  </code></pre>
  
  <p>in this it will done the <code>'MD'</code> only in <code>$(document).ready(function()</code>. how i will and set the caption for <code>dc</code> and <code>vr</code>.</p>
  
  <p>my caption syntax:</p>
  
  <pre><code>$("#list1").jqGrid('setCaption',
      'Incident Listing By Congressional District :' + tableheadings);
  </code></pre>
  
  <p>i need how to access the next values in the <code>$(document).ready(function()</code>.</p>