jquery display switch

Using  jquery to control css display attribute.

$j(window).load(function(){
if($j(’#test1′).css(’display’) == ‘none’)
{
$j(’#tab1′).css(’display’, ‘none’);
$j(’#tab2′).css(’display’, ‘block’);
}

});

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “jquery display switch”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>