I have a document with a bunch of sections that have information that I need to gather based on the URL anchor. 

Example of what I'm trying to do:

**URL** 

`http://mywebsite.com/page.php#section-2`

**html** 

```
<div id='information'>Data should be here!</div>

<div id='section-1'>This is data from section 1!</div>

<div id='section-2'>This is data from section 2!</div>

<div id='section-3'>This is data from section 3!</div>

<div id='section-4'>This is data from section 4!</div>

```

**CSS** 

```
div{
    height: 500px;
}

```

**jQuery**

```
var hash = window.location.hash;
if(!hash == ""){
    var data = $(hash).text();
    $("#information").text(data);
}

```

But when I load the URL, The jQuery works fine, But the page jumps down to `#section-2`.  

How do I stop this from happening?

Thanks in advance.