Opened 14 years ago
Closed 14 years ago
#4921 closed bug (invalid)
basic filters (lt & gt) only accept numbers, not variables
Reported by: | th507 | Owned by: | john |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | selector | Version: | 1.3.2 |
Keywords: | lt gt filters | Cc: | |
Blocked by: | Blocking: |
Description
This does not work var t = 10; $("div:lt(t)").each();
===========================
while the following works $("div:lt(10)").each();
Note: See
TracTickets for help on using
tickets.
Selectors do not do automagic variable substitution. This works fine though:
Please use the forums rather than the bug tracker to ask these kind of questions.