I have a search page with one div on it (#A), when I do a search, I have made another div appear on the page (#B), however I don't ever want the two divs on the page at the same time.
How can I code it so that if #B exists, #A is hidden? Do I use the jQuery .length attribute??