Another approach:
if ( $('#FirstDiv').length > 0 ) { $('#SecondDiv').show(); }
--------------------------------------------------------------------------
De: "MorningZ" <[EMAIL PROTECTED]>
if (document.getElementById("FirstDiv")) { $("#SecondDiv").hide(); }
--------------------------------------------------------------------------
On Oct 17, 1:47 pm, Taylor <[EMAIL PROTECTED]> wrote:
Is there a simple way with jQuery to find a div with a specific id,
and display a different div if the id is found?