Thanks! Now I get it. Can you explain the reasoning behind the
<noscript> approach please?

Thanks again.


On Oct 28, 9:50 am, "Isaak Malik" <[EMAIL PROTECTED]> wrote:
> It's much wiser to use <noscript><p class="jsoff">Please turn Javascript on
> to view the content.</p></noscript> instead of a JavaScript function that
> hides it.
>
> On Mon, Oct 27, 2008 at 11:01 PM, Karl Swedberg <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > On Oct 26, 2008, at 9:33 PM, 5h4rk wrote:
>
> > Hi,
>
> > I have
>
> > <p class="jsoff">Please turn Javascript on to view the content.</p>
>
> > and
>
> > $('p.jsoff').hide();
>
> > When I turn CSS off using the Web Developer Extension for Firefox and
> > Javascript on, the message is somehow not hidden. I'm not sure if this
> > is the problem, but Instead of style="display:none;", webdeveloper-
> > inline-style="display:none;" is applied to the p.
>
> > It works fine when CSS is on though.
>
> > Appreciate your help.
> > Thanks.
>
> > That's right. the .hide() method uses display: none; which is a css
> > declaration. You could try $('p.jsoff').remove() instead.
>
> > --Karl
> > ____________
> > Karl Swedberg
> >www.englishrules.com
> >www.learningjquery.com
>
> --
> Isaak Malik
> Web Developer

Reply via email to