title: Getting Value from GridView Input Control using JavaScript
body: <p>i am using <code>Asp.Net Grid View Control</code> having <code>Template Field</code> Columns. Which have <code>Asp.Net Literal,TextBox and CheckBox</code> Controls. I want to add each row <code>Received Amount</code> value when checkbox is Checked in each row. Below is my GridView.</p>
  
  <p><img src="https://i.stack.imgur.com/jqh1D.png" alt="enter image description here"></p>
  
  <p>I have accessed the <code>Received Amount</code> columns by <code>JavaScript</code>, but it gives me the whole Textbox in <code>Alert</code>
  <img src="https://i.stack.imgur.com/cOHQv.png" alt="enter image description here"></p>
  
  <p>I want to get Value of that Textbox having <code>Id=txtFeeRecAmount</code>, not whole Control..
  Below is my <code>Script</code>..</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          function AddAmount(lnk) {
              var row = lnk.parentNode.parentNode;
              var rowIndex = row.rowIndex;
              alert(rowIndex);
              var amount = row.cells[2].innerHTML;
              alert(amount);
          }
  &lt;/script&gt;
  </code></pre>
  
  <p>Any Help, I want to get Value of <code>Received Amount</code> Column, when the <code>CheckBox</code> is checked.</p>