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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -