#4800 closed feature (plugin)
More selector to compare attribute
Reported by: | waruichingu | Owned by: | john |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | selector | Version: | 1.3.2 |
Keywords: | selector | Cc: | |
Blocked by: | Blocking: |
Description
Patch for jquery-1.3.2.js
2026,2027d2025 < type === "%=" ? < value.indexOf(check) < 0 : 2042,2043d2039 < type === ">=" ? parseInt(value, 10) >= parseInt(check, 10) : < type === "<=" ? parseInt(value, 10) <= parseInt(check, 10) :
- Not equal
- greater than
- lesser than
Change History (5)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Keywords: | selector added |
---|---|
Milestone: | 1.4 → 1.5 |
Priority: | minor → low |
Status: | new → open |
This seems like something that wouldn't necessarily be that feasible, since num doesn't have to be an integer. This seems better as a custom addition rather than a built in selector. I'll add it to the feature request list, since it is a valid request though.
The jsfiddle example is a bit useless, since nothing is actually implemented, but I suppose it shows your point.
comment:3 Changed 12 years ago by
Yeah, a custom selector seems to be a good choice. Thank you very much.
PS: If not, i have to patch every version upgrade.
comment:4 Changed 12 years ago by
Resolution: | → plugin |
---|---|
Status: | open → closed |
Yeah, I'm leaning towards plugin, as well.
comment:5 Changed 12 years ago by
I have checked the 1.6 code, it doesn't allow me to have a custom selector. Can you direct me? Thanks.
Sample http://jsfiddle.net/4twdc/