jquery - Setting scroll position on div tag inside a gridview -
jquery - Setting scroll position on div tag inside a gridview -
i have gridview
there div within want set scroll position on div. set div overflow=scroll
. used code, fine work first row of gridview
not of them. should ?
<script type="text/javascript"> sys.application.add_load(function () { var t = document.getelementbyid('commentdiv'); t.scrolltop = t.scrollheight; }); </script>
document.getelementbyid gets 1 element, elements using document.getelementsbyclassname instead of document.getelementbyid giving class name of div elements , apply properties should work fine.
jquery html css asp.net gridview
Comments
Post a Comment