I am new to the web Development.
Here I have a table, in that table,
<tbody>
<tr>
<td>
</td>
</tr>
</tbody>
Now, it has a scrollbar as it has a fixed height. Now, I have 50 tr
in that table, So, user is scrolling that table .
Now, I have a button on click of that one more gets added it gets added in the first position
.
SO, user has scrolled the table, and the also gets added. Now, what I want to do is as soon as row gets added , the scroll bar should be at top
so that user will immediately see the newly added row.
is there any way to do this ?