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="wonder" size="25"/>
</td>
<td><input type="text" id="good" size="25"/>
</td>
<td><input type="button" value="Delete" class="delRow"/>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="button" value="submit"/>
</td>
<td>
</td>
</tr>
</table>
Here I get Dynamic Column of Age and Name While clicking addbutton,How to extract the Age value & name for the all dynamic Rows Any Idea?
I tried the following
$(".addComment").btnAddRow({rowNumColumn:"rowNumber"});
$(".delRow").btnDelRow(function(row){
if(row) var a=$("input#good").val(); alert(a) });
It will Give the First Row Value; and Regarding secondRow it alerts null
Any Ideam