I want to hide all child elements in a div. And then show a specific one passed on to the function.
function subDisplay(name) { $(\"#navSub\").each(functi
To summarize the great comments from @dotweb and @Matt;
function subDisplay(name) { $('#navSub').hide(); $(name).show(); } subDisplay('#DivIwantToShow');