Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Jquery scroll

$
0
0

hi

i have 2 content place holders..   in content 2 we have design (like body) 

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"  Runat="Server"></asp:Content>

the scroll bar is coming to the centre of the window when we refresh the page... to set the scroll position to top of the window i am using the following jquery code.. 2 alerts  are coming but scroll to top is not working... can u give me good code...it may be in asp or javascript or any...

<script type="text/javascript">
$(document).ready(function () {
alert("12353");
$('[id*="Content2"]').scrollTop();

alert('abc')

});


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>