textbox fields have the same name and id. i am going to add two textbox values in onblur event by using document.getElementById('textboxname').value
but it is taking only the first row values.
i want a solution like it works for all the rows?
plese help me ,thanks in advance
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- function Add(id,nu)
- {
- <%
- for(int i=0;i<5;i++){%>
- var table=document.getElementById(id);
- var tbody=table.getElementsByTagName('TBODY')[0];
- var newrow=tbody.appendChild(tbody.getElementsByTagName('TR')[0].cloneNode(true));
- newrow.getElementsByTagName('INPUT')[0].value='';
- <%}%>
- }
- </script>