views:

22

answers:

1

Dear All I am Using the Jquery To add the Values in the Table Using AddrowPlugin I need to GetThe Dynamic Values of Row1 Row2 Row3 Etc.

My Code
enter code here
 <script type="text/javascript">
  $("document").ready(function(){
  $(".addComment").btnAddRow({rowNumColumn:"rowNumber"});
     $(".delRow").btnDelRow();

   });
</script>  

<table border="1" class="autoTable">

     <tr><td>Your Name</td>
     <td>Your Age</td><td> </td>
     </tr>
     <tr><td>
      <input type="text" id="one" size="25"/>
     </td>
      <td><input type="text" "two" size="25"/>
     </td>
      <td><input type="button" value="Delete" class="delRow"/>
     </td>
     </tr>
      <tr>
      <td>
      </td>
       <td>
     <input type="button" class="addComment" value="submit"/>
      </td>


     </tr>
     </table>

Here I get Dynamic Column of "one" inputfield and "two" input field submit,How to extract the "one" value & "two" for r the all dynamic Rows Any Idea?

A: 
 $(".addComment").btnAddRow({inputBoxAutoNumber:true},function(row){
    if(row) 
     var t=$("input[name=one1]").val();
     var t2=$("input[name=one2]").val();

     // retrieves the one field as i set the default inputBoxAutoNumber:
     //  true it keep on increments as it adds
    });
venkatachalam