Please ask on the main list:

http://groups.google.com/group/jquery-en

as this list is dedicated to discussion of jQuery UI plugins[*]. Thanks.

- Richard

[*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/

On Tue, Dec 30, 2008 at 4:17 PM, Matt Wilson <[email protected]> wrote:

>
> I've got some links that only serve as anchors for javascript, so I
> use CSS to hide them like this:
>
> .requiresjavascript
> {
>    display:none;
> }
>
> and here's the HTML:
>
> <a class="requiresjavascript clearall" href="#">Clear all</a>
> <a class="requiresjavascript clearall" href="#">Check all</a>
>
> The idea is that for a browser without javascript, those links don't
> appear.
>
> I want to show these links when javascript is available, so I have
> this in my $(document).ready() at the top:
>
> $(document).ready(function () {
>    $(".requiresjavascript").show();
> });
>
> That doesn't work.
>
> However, this approach works fine:
>    $(".requiresjavascript").removeClass('requiresjavascript');
>
> So, what am I doing wrong?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to