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
if the name of the element is passed in name use this:
if($(this).attr('name') != name){ //Hide it } else { //show it }