victoriashrew
New Member
I would like to have this little button, when you click on it, a new table row is added and using the jQuery to smoothly scroll to that newly added row.I have created an example here http://jsfiddle.net/2EBNH/Notice that this is a simplified version of my code. The real one allows the row to be added anywhere within the table (doesn't have to be at the last row), so dont simply tell me I can always scroll to the bottom.But even just scrolling to the bottom, the code doesnt work. It works for the first 10 rows I assume, but the position/offset (I have tried both) seems not correct if you have more rows added.To test it, just add more than 15 rows then you will see the result.I notice that if you move the scrollbar to the top everytime after you clicked on the button, it seems to work somehow.Thank you