show div content as default upon page load

OccafeJef

New Member
I followed this http://jsfiddle.net/6rSvf/ to make the links change div content when clicked. However can someone assist on how I can show a div as default and then when a link is clicked the content is replaced accordingly. Currently nothing is shown until a link is clicked.Here is my JS.\[code\]$("#divtoggle").delegate("a", "click", function(e) { var toggled = ($(this).prop("id")); $("div#wrap").prop("class", toggled);});\[/code\]Thanks
 
Back
Top