[jQuery] Re: :gt and :lt don't accept variable as a parameter?

2009-11-18 Thread Magnificent
Ah, terminate the string! I'll give that a shot, thanks much for the extra set of eyes. I came up with an alternate solution that works but I like the :gt and :lt way better. Here's what I came up with: var condition_count = $('#filterlist_wrapper ul#col1 li').size(), left_col =

[jQuery] Re: :gt and :lt don't accept variable as a parameter?

2009-11-17 Thread mkmanning
Try $('#filterlist_wrapper ul li:gt('+left_col+')') On Nov 17, 3:35 pm, Magnificent wrote: > It should read: > > > I'm storing my counts in variables, but it doesn't look like :gt > > and :lt can accept a VARIABLE value as it's parameter. > > It works when I put in, say :gt(44), but not :gt(left

[jQuery] Re: :gt and :lt don't accept variable as a parameter?

2009-11-17 Thread Magnificent
It should read: > I'm storing my counts in variables, but it doesn't look like :gt > and :lt can accept a VARIABLE value as it's parameter. It works when I put in, say :gt(44), but not :gt(left_col) or lt: (right_col) when those variables are numbers.