ある位置にスムーススクロールさせたい
2行で出来る
var myPos = $("#move").offset().top; $('html, body').animate({scrollTop: myPos}, 500);
html
<table> <tr id="move"> <td>aaa</td> </tr> </table>
2行で出来る
var myPos = $("#move").offset().top; $('html, body').animate({scrollTop: myPos}, 500);
html
<table> <tr id="move"> <td>aaa</td> </tr> </table>