Avoid class researches or precise them.

//You should not use 
$(".bob").hide();

//but use instead
$("#closestParent .bob, #someOtherPlaceNearBob .bob").hide();