jQuery Show and Hide Content -
i have vertical accordion
menu on left , once user clicks on menu item, content displays on right. trying when user loads page, there content on right. content area blank. how can have content on right , when user clicks on menu item content replaced new content.
i new jquery. first project. appreciated. thanks.
the display on jsfiddle not exact, should able idea.
the link jsfiddle
probably simplest way:
$('#section-whicheveryouwant').show();
add end of $(document).ready
function.
also - recommend putting $(document).ready
inside closure - or don't use closure - consistent.
Comments
Post a Comment