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 9066579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:45:32+00:00 2026-06-16T16:45:32+00:00

I am creating a jquery mobile listview that can be filtered on it’s content

  • 0

I am creating a jquery mobile listview that can be filtered on it’s content like below:

<ul data-filter="true" ...>
<li class='thisrowshouldnotbefilteredout'></li>
<li>content to filter on</li>
......
......
</ul>

The first row is my header and I don’t want it to hide when user enters text to filter on. Is there an attribute I can give to this row, or will I have to override the base call back function for fitering?

  • 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-16T16:45:33+00:00Added an answer on June 16, 2026 at 4:45 pm

    You can override filter logic like this:

    $("#mylist").listview('option', 'filterCallback', customSearch);
    
    var customSearch = function(text, searchValue, item) {
        return text.toLowerCase().indexOf( searchValue) === -1;
    }
    

    Any function defined for the callback will be provided three arguments. First, the text of the current list item, second the value being searched for, and third the list item being filtered. A truthy value will result in a hidden list item. The default callback which filters entries without the searchValue as a substring is described below.

    Use it to skip your header li element. Modify it as you wish.

    Example and more about this can be found here: http://jquerymobile.com/test/docs/lists/docs-lists.html

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

Sidebar

Related Questions

I am creating a jQuery Mobile page that has two select menu's, one is
Creating app with jQuery Mobile, I want a page to load data from a
I'm creating a jQuery Mobile web application. This link, works correctly: <a href=/ThePage/25 data-transition=slidedown>Click
we are creating one jQuery mobile app in that app, I have to bind
I'm creating a mobile view that uses backkbone.js and jquery mobile. I have a
I am creating an app using jQuery Mobile. I have a listview from which
When creating a form in jQuery mobile, it seems like the default form functionality
I'm creating an iPad app using Jquery Mobile, and would like to create a
When creating a jquery mobile / phonegap app, is it ok to pass variables
I am creating a mobile app using jquery mobile, PHP using JSON for fetching

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.