Try it this way
$('logins').select('li.seaside').invoke('show');
or
$('logins').select('li.fav').invoke('show');
or with the variable
$('logins').select('li.'+group).invoke('show');
if you use the attribute selector instead of a class selector it
will interpret it very literally instead of "this is what I meant"
Jason Westbrook | T: 313-799-3770 | [email protected]
On Fri, Dec 14, 2012 at 1:10 PM, kstubs <[email protected]> wrote:
> I have this
>
> $('logins').select('li[class=\'' + group + '\']').invoke('show');
>
>
> This seems to be matching on an exact class name though, but I have something
> like
>
>
> <li class="seaside fav">Seaside</li>
>
>
> So if group is "fav" or group is "seaside", then either should return the
> above.
>
>
> Thanks for the help.
>
> Karl..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/prototype-scriptaculous/-/R_8NmGQ1sdAJ.
> 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/prototype-scriptaculous?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.