2

Demo link please click here

I am trying to create a link like this page1.html#section1, page2.html#section2 etc., but these link not working

Associated code

function showSection( sectionID ) {
    $('div.section').css( 'display', 'none' );
    $('div'+sectionID).css( 'display', 'block' );
}
$(document).ready(function(){
    if (
        $('ul#verticalNav li a').length &&
        $('div.section').length
    ) {
        $('div.section').css( 'display', 'none' );
        $('ul#verticalNav li a').each(function() {
            $(this).click(function() {
                showSection( $(this).attr('href') );
            });
        });
        $('ul#verticalNav li:first-child a').click();
    }

});
user2913707
  • 33
  • 10
  • plz could you check my demo link: http://jsfiddle.net/bala2024/x9ypj/ – user2913707 Oct 25 '13 at 08:12