On Sep 1, 2006, at 1:26 PM, Jim Davis wrote:
> Stefan,
> Adding display: none; to the addText div dosen't work. I also tried
> creating a class:
> .hideit { display: none; }
> and changed the html to:
> <div id="addText" class="hideit">
> That dosen't work either.

You could also try hiding the DIV with jQuery when the DOM initially  
loads:

$(document).ready(function() {
        $('div.hideit').hide();
});

This would have the added advantage of displaying that extra text  
initially if the user has css turned on and javascript turned off, so  
possibly more graceful degradation. How would user get to see that  
additional text in that case if the css were set to display: none?

Cheers,

Karl
___________________
Karl Swedberg
www.englishrules.com




_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to