Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:26:33+00:00 2026-06-18T08:26:33+00:00

I have a list of items and i need to return only the items

  • 0

I have a list of items and i need to return only the items that the price is between the price range of “min” and “max”.

Here is full working Example that sort the items by class, But as you can see the slider doesn’t affect the price range, Here is the full code:

http://jsfiddle.net/p2jwz/8/

so, as you can see, Here is the .find and .filter code:

  var price = data.find('li').filter(function() {
    var price = parseFloat($(this).data('price'));
   return price >= minPrice && price <= maxPrice;
}); 

Can you tell me what I’m doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:26:34+00:00Added an answer on June 18, 2026 at 8:26 am

    Finally! I found the solution, you simply have to call function with all vars

    function showProducts($holder, data, minPrice, maxPrice) {
    
       var $price = data.find('li').filter(function() {
            var $price = parseInt($(this).data("price"), 10);
            return $price >= minPrice && $price <= maxPrice;
        });
    
                // call quicksand and assign transition parameters
            $holder.quicksand($price, {
                duration: 800,
                easing: 'easeInOutQuad'
            });
            return false;
    }
    

    Hope that help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of items that I need to update on different intervals.
I have items in a list in a SharePoint 2003 site that I need
I have 5 list items, when one is clicked the only method I know
I have a stored procedure that gets a list of items, sorts and applies
I have an unordered list of 50 items. I want to show only 10
I have code that adds list items to an unordered list, and associated with
I have a fairly simple web application that gets a list of items from
I have a view that contains a list of items, a TextBox and a
I have a specialized list that holds items of type IThing : public class
I have a list of two-item lists and need to search for things in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.