On Mar 26, 2009, at 10:14 AM, donb wrote:
If I could 'or' :eq and :gt somehow then there's the answer - but I haven't seen that talked about. Is it possible? I'd like to accomplish: $("div.foo:ge(2)").remove()
well, you could do $("div.foo:gt(2), div.foo:eq(2)").remove() or $ ("div.foo:gt(2)").add("div.foo:eq(2)").remove(), but why not just $ ("div.foo:gt(1)").remove() ?
--Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com