I want to make a function to show and hide a div tag and hide all others:
function showPage(showdiv){ $(\'#midRight\').not(showdiv).hide(); $(showdi
You could write you selector to hide all child div's of midRight, then show the div with the passed ID. No need to cast to a String, since that is what you are passing:
midRight
function showPage(showdiv){ $('#midRight > div').hide() $(showdiv).show(); }