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 you want to hide child div using class.
1st div 2nd div $(document).ready(function(){ $(".parent_div").on('click',function(){ $j(this).find("div").toggle(); }) })