Re: [jQuery] Find and Remove Elements

2007-03-21 Thread Alex Ezell
George, I think my original response got lost somehow. This is an abbreviated version. On 3/21/07, George Adamson <[EMAIL PROTECTED]> wrote: > Hi Alex, this is easy with JQuery's filter method because these days it can > take a custom function to decide how to filter your elements: I had looked a

Re: [jQuery] Find and Remove Elements

2007-03-21 Thread Alex Ezell
On Wed, 21 Mar 2007 17:20:22 -0400, Scott Sauyet wrote: > One caveat, though, is that you are tying this functionality very > closely to the exact HTML structures you are using. It's essentially a > screen-scraping technique, and if you decided to change the HTML in some > way so that the .resu

Re: [jQuery] Find and Remove Elements

2007-03-21 Thread Scott Sauyet
Alex Ezell wrote: > > Turkey > 6.95 > > [ ... ] > Then the user uses a slider to send the maximum price as 7.00. How > would I, using jQuery obviously, find the elements whose resultPrice > is higher than 7.00 and remove it from display, not totally remove it > from the DOM, just hide it?

Re: [jQuery] Find and Remove Elements

2007-03-21 Thread George Adamson
Hi Alex, this is easy with JQuery's filter method because these days it can take a custom function to decide how to filter your elements: Try something like this... (I'd also recommend a simple check to ensure value is numeric before comparing it) // To hide all "searchResult" DIVs containing re

[jQuery] Find and Remove Elements

2007-03-21 Thread Alex Ezell
I am working a page which will filter search results based on user input via checkboxes or sliders. The question I have is what is the best way to identify and remove elements based on a value. Take this HTML structure as an example (produced via PHP). Turkey 6.95 Roast Beef 7.95 The