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.
$("#divtoggle").delegate("a", "click", function(e) {
var toggled = ($(this).prop("id"));
$("div#wrap").prop("class", toggled);
});
Thanks
OR
UPDATE
If the URL has the
#hash, it will open that one, otherwise if will open the first one.