I'm currently making a like "one page" concept web page and I came across where I want the user view navigated to the specified element that its id is equal to the data-id attribute of the currently click element.
navigation div (i prefer use div for my own requirements)
<div class="extend clear navigator">
<div class="navigator_nav extend align_left margin_right5px" id="tes1">Test 2</div>
<div class="navigator_nav extend align_left margin_right5px" id="tes2">Test 2</div>
<div class="navigator_nav extend align_left margin_right5px" id="tes3">Test 3</div>
</div>
and the content elements
<div class="page_content container extend clear" data-id="test1">Test 1 container</div>
<div class="page_content container extend clear" data-id="test2">Test 2 container</div>
<div class="page_content container extend clear" data-id="test3">Test 3 container</div>
so if click the div that has an id of "test1" then navigate to the element that has an id of test1 (scroll up/down, wherever that element located at that has an id same to the currently click element data attribute name data-id) Any ideas how to make it?