Try doing
if ( $('#specialSection').length )
in your conditional.
-- Josh
----- Original Message -----
From: "Sharique" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, April 22, 2008 12:22 PM
Subject: [jQuery] searching css id
Hi,
What I'm trying to is that when there is certain css id appears in
area. then it should hide right sidebar and change the width of center
area.
if($('#specialSection'))
{
$('#sidebar-right').hide();
$('#center').css('width','760px');
}
But this code is not working properly. It hides right sidebar on every
page.