[Proto-Scripty] Help sizzle select

2012-12-14 Thread kstubs
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 favSeaside/li So if group is fav or group is seaside, then either should return the above. Thanks for the

Re: [Proto-Scripty] Help sizzle select

2012-12-14 Thread Jason Westbrook
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

Re: [Proto-Scripty] Help sizzle select

2012-12-14 Thread kstubs
You unsizzled my sizzle! But yeah, that will work just fine. Thanks. On Friday, December 14, 2012 2:28:49 PM UTC-7, Jason wrote: Try it this way $('logins').select('li.seaside').invoke('show'); or $('logins').select('li.fav').invoke('show'); or with the variable