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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -