I was wondering if i could get some help. What i am trying to achieve is this.
Once an option from the selected, the page should jump to the corresponding div. I am able to do an alert to make sure the right div is selected but i do not know how to make the page jump to the relevant section
<div class="nav">
<div class="top-nav">
<form action="#">
<select>
<option value="ten">10</option>
<option value="twenty">20</option>
<option value="thirty">30</option>
</select>
</form>
</div>
</div>
<div class="area">
<div id="ten">Alot of content goes in here</div>
<div id="twenty">Alot of content goes in here</div>
<div id="thirty">Alot of content goes in here</div>
</div>
$('.top-nav').children().children('select').bind('change', function () {
alert($('#' + $(this).val()).html());
});