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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:31:50+00:00 2026-06-14T10:31:50+00:00

I have a listview, with a search filter, and almost 300 <li> . Refreshing

  • 0

I have a listview, with a search filter, and almost 300 <li>.

Refreshing the listview takes around 7s, but sometimes I just want to update the data-icon of a single <li>.

Is there a way to refresh a single <li> without refreshing the full listview?

Edited:

Example:

<ul data-role="listview" id="myList">
    <li id="a" data-icon="check"><a href="">A</a></li>
    <li id="b" data-icon="check"><a href="">B</a></li>
</ul>

Solution:

$('#a span').removeClass ('ui-icon-check');
$('#a span').addClass ('ui-icon-refresh');
  • 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-14T10:31:51+00:00Added an answer on June 14, 2026 at 10:31 am

    Does something like this work?

    • http://jsfiddle.net/RzBhu/

    JS

    // US Flag
    var newImageSource = "http://jquerymobile.com/demos/1.2.0/docs/lists/images/us.png"; 
    
    // this is the item you want to change
    var listItemChildNeeded = 3; 
    
    // this is the list with the found item
    var listItemChildSelected = $("#myList :nth-child("+listItemChildNeeded+")"); 
    
    // digging into the jQM markup first level
    var listItemChildSelectedFirstChild = listItemChildSelected.children(); 
    
    // digging into the jQM markup second level
    var listItemChildSelectedSecondChild = listItemChildSelectedFirstChild.children(); 
    
    // digging into the jQM markup third level
    var listItemChildSelectedThirdChild = listItemChildSelectedSecondChild.children(); 
    
    // digging into the jQM markup fourth level
    var listItemChildSelectedFourthChild = listItemChildSelectedThirdChild.children(); 
    
    // Change Great Britains Flag to the US Flag
    listItemChildSelectedFourthChild.attr('src', newImageSource);
    
    
    // one liner syntax
    //$("#myList :nth-child(3)").children().children().children().children().attr("src","http://jquerymobile.com/demos/1.2.0/docs/lists/images/us.png");
    
    
    ​
    

    HTML

    <div data-role="page" id="home" class="pages" data-theme="c">
        <ul data-role="listview" id="myList">
            <li><a href="#"><img src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/gf.png" alt="France" class="ui-li-icon">France <span class="ui-li-count">4</span></a></li>
                <li><a href="#"><img src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/de.png" alt="Germany" class="ui-li-icon">Germany <span class="ui-li-count">4</span></a></li>
                <li><a href="#"><img src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/gb.png" alt="Great Britain" class="ui-li-icon">Great Britain <span class="ui-li-count">0</span></a></li>
                <li><a href="#"><img src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/fi.png" alt="Finland" class="ui-li-icon">Finland <span class="ui-li-count">12</span></a></li>
                <li><a href="#"><img src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/sj.png" alt="Norway" class="ui-li-icon">Norway <span class="ui-li-count">328</span></a></li>
                <li><a href="#"><img src="http://jquerymobile.com/demos/1.2.0/docs/lists/images/us.png" alt="United States" class="ui-li-icon">United States <span class="ui-li-count">62</span></a></li>
        </ul>
    </div>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple list with a search. <ul data-role=listview data-inset=false data-filter=true data-iconpos=right> My
In jQueryMobile, I have written a data-role=listview component and I want to filter the
I have a listview which has its datasource changed after update of a search
I want to filter a ListView in real time. I have an EditText in
I want a filter for my ListView in Android. I have found this link
I have a list like this <ul data-role=listview id=list data-filter=true></ul> it looks good on
i have the list view with filter like this : <ul data-role=listview data-filter=true> <li>Week
I have a ListView and a EditText. I want to be search the name
I have ListView that uses a GridView to display several columns of data. Two
I have ListView which is saving all data to database. For adding i have

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.