title: Accessing two gridviews simultaneosly using javascript
body: <p>I would like to access the values of grid view (text box / drop down) using the java script. The problem is that,  the values i needed , exist in the same form but in two different Grid views.</p>
  
  <p>I can get the values from one grid view where am doing the validation currently, by using the following code:</p>
  
  <pre><code>function CheckCreditTransaction(sender, args)
  {
      var creditLimit = GetClientID('txtAmount');
      var creditValue = $get(creditLimit).value;
      var creditBalance = GetClientID('lblBalance');
      var creditBalValue = $get(creditBalance).value;       
  }
  </code></pre>
  
  <p>Here the problem is both <code>txtAmount</code> and <code>lblBalance</code> being the id's of the text box controls inside the grid view , the values cannot be accessed. Because the controls refer to the second grid view (not the one which has been focused currently).</p>
  
  <p>I think I am able to convey the problem in detail.</p>
  
  <p>Any suggestions?</p>