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

  • Home
  • SEARCH
  • 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 7051563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:16:42+00:00 2026-05-28T03:16:42+00:00

I am struggling to get JQM to reinitialize a jquery page with a listview

  • 0

I am struggling to get JQM to reinitialize a jquery page with a listview that contains form fields.

One of the form elements is initialized as part of JQM’s normal initialization process, that is displaying correctly with all the correct class applied to all elements.

The others are all added dynamically using JQ’s append

When elements are added dynamically I cannot find the correct method to reinitialize the list to apply the styling to everything, the fieldcontain div the label & the textarea.

I have prepared an example to show the different methods to reinitialize the elements that I’ve tried based on other questions found on SO and around the web.

http://jsfiddle.net/robaldred/UPsQr/

In my example, row 5 is correctly initialize, however it requires calling the fieldcontain() method the textinput() method and manually add the ui-input-label class to the label. This feels like a lot of messing about, I must be missing something.

  • 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-28T03:16:43+00:00Added an answer on May 28, 2026 at 3:16 am

    Trigger a create event on the page like this:

    $("#page").trigger("create");
    

    Create vs. refresh: An important distinction

    Note that there is an
    important difference between the create event and refresh method that
    some widgets have. The create event is suited for enhancing raw markup
    that contains one or more widgets. The refresh method should be used
    on existing (already enhanced) widgets that have been manipulated
    programmatically and need the UI be updated to match.

    For example, if you had a page where you dynamically appended a new
    unordered list with data-role=listview attribute after page creation,
    triggering create on a parent element of that list would transform it
    into a listview styled widget. If more list items were then
    programmatically added, calling the listview’s refresh method would
    update just those new list items to the enhanced state and leave the
    existing list items untouched.

    Referenece: http://jquerymobile.com/demos/1.0/docs/pages/page-scripting.html

    Updated your fiddle – http://jsfiddle.net/UPsQr/2/

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

Sidebar

Related Questions

I'm really struggling to get my head around Drupal Form API...actually Drupal as a
I am struggling to get a list created by Ember.js sortable using jQuery.ui. The
I'm struggling to get Dozer to bend to my will for something that I
I'm struggling to get passenger+rvm+apache+rails working. When opening the page, I get the following
I'm struggling to get a $.ajax call to correctly send some form data to
I'm struggling to get what i think should be a simple bit of jquery/javascript
I'm really struggling to get this to work in xcode 4. I have one
I'm struggling to get to grips with jQuery live() when combined with global custom
I have been struggling to get my jquery call to a webmethod to work.
After struggling for days attempting to get back collections that are linked to a

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.