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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:47:59+00:00 2026-05-30T22:47:59+00:00

I have a listview in my jQuery page and I dynamically add content to

  • 0

I have a listview in my jQuery page and I dynamically add content to it when data is loaded via. The ‘sometext’ is something I have downloaded after the page has first been drawn.

listString =  '<li><a href="#">'+sometext+'</a></li>';
            $("#friends_list_view ul").append(listString);

and the HTML is:

<div data-role="content" data-theme="b">

    <div id="friends_list_view" class="content-primary" data-theme="b"> 
        <ul data-role="listview" data-filter="true">
        <li><a href="#">TEST</a></li>

        </ul>
    </div>  
</div>

So originally I have no list items when the page is loaded, and then I shove them in later.
But when I do that, it doesn’t style according to my stylesheet. The control still works, i.e. the data filter is able to search properly, but the list elements just look like hyperlinks when they should look like styled buttons. The ‘TEST’ li styles properly, as expected.

How do I fix it so that it is styled properly? Or, did I do something else wrong along the way?

Sorry for my noobness 🙂

  • 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-05-30T22:48:02+00:00Added an answer on May 30, 2026 at 10:48 pm

    Check the documentation here. Check the bottom section for updating a list.

    You need to do the following:

    $("#friends_list_view ul").listview('refresh');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dynamically added list on the home of my jQuery Mobile Page.
I have a setup, something confusing like this: <ListView> <ItemTemplate> <div id=Content> <asp: TextBox
I have the following ListView in which I am using the JQuery UI sortable
I have ListView that has the following EditItemTemplate: <EditItemTemplate> <tr style=> <td> <asp:LinkButton ID=UpdateButton
I have a ListView on a page that displays a list of widgets. When
I have a listview with a DataTemplate that has a ComboBox. I want the
I am using jQuery Mobile with jQuery Mobile Router , to dynamically change content
I am working on a basic page with jquery-mobile. I currently have 2 pages
I have the following jQuery Mobile HTML code, the navbar's content is set using
Consider the scenario where: an ASP.NET webform page has a DropDownList and a ListView.

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.