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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:21:20+00:00 2026-06-05T20:21:20+00:00

I am trying to implement country search in my dummy application. Initially on home

  • 0

I am trying to implement country search in my dummy application. Initially on home page i am using list view and it is displaying properly. But the same list view, if i am displaying using ajax, List view content is displaying but css is not applied on this.

Please have a look at dummy application by clicking on link below:
http://questoons.com/vkwave/sof/ajaxrequest/

In dummy app, initially list view displaying properly but when click on “Call Ajax and Populate Country List”, i am sending the whole list data using ajax like below:

<ul data-role="listview" data-filter="true" data-filter-placeholder="Search Country/Group..." data-filter-theme="d" data-theme="d" data-divider-theme="b">
                    <li data-role="list-divider">A</li>
                    <li data-icon="false"><a href="#"  >Afghanistan</a></li>
                    <li data-icon="false"><a href="#"  >Argentina</a></li>
                    <li data-icon="false"><a href="#"  >Australia</a></li>
                    <li data-icon="false"><a href="#"  >Austria</a></li>
                    <li data-role="list-divider">B</li>
                    <li data-icon="false"><a href="#"  >Bahamas, The</a></li>
                    <li data-icon="false"><a href="#"  >Bahrain</a></li>
                </ul>

but in ajax response list css is not applied. Please guide where i am wrong.

I am using normal jquery ajax.

  • 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-05T20:21:22+00:00Added an answer on June 5, 2026 at 8:21 pm

    in first load your Html is:

    <ul data-divider-theme="b" data-theme="d" data-filter-theme="d" data-filter-placeholder="Search Country/Group..." data-filter="true" data-role="listview"
        class="ui-listview">
        <li data-role="list-divider" role="heading" class="ui-li ui-li-divider ui-bar-b">
            A
        </li>
        <li data-icon="false" data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="div" data-iconpos="right" data-theme="d"
            class="ui-btn ui-btn-icon-right ui-li ui-btn-up-d">
            <div class="ui-btn-inner ui-li">
                <div class="ui-btn-text">
                    <a href="#" class="ui-link-inherit">Afghanistan</a></div>
            </div>
        </li>
    </ul>
    

    ul, li, and other html element has some class. but in ajax response you missing this class. Add css classes to your ajax response.

    for example :

    <ul class="ui-listview" ...
        <li class="ui-btn ui-btn-icon-right ui-li ui-btn-up-d" ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying implement a custom login page to use in my JSF 2.0 application.
Im trying to implement a Picker View but instead of text I want it
Trying to implement a search similar to here .This searches properties based on city,locality,property
Im trying to implement a destructor for the objects of linked-list Iv created. I
I am trying to implement paging across ajax calls. The page should not refresh
I'm trying to implement an IUserType for states and country codes that will allow
I'm trying implement a way to recursively template using jsRender. The issue is, my
I am trying to implement editing addresses in my view. An address has basic
I'm trying implement a bracket in my program (using C#/.NET MVC) and I am
Trying to implement AVAudioplayer and get some metering data of the played music, but

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.