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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:18:14+00:00 2026-05-26T11:18:14+00:00

In my mobile website, I dynamically create a form in javascript, so I need

  • 0

In my mobile website, I dynamically create a form in javascript, so I need the ‘reload’ the page to get the jQuery Mobile style.
For a listview, we can simply call $(“#mylistview”).listview(“refresh”) but there is no such feature for form.

I know that we can call “refresh” one each element of the form, but by doing this, the style is not correctly applied. Indeed, all my checkbox get separated, they don’t appears in one “inset”

I there any workaround ?

  • 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-26T11:18:15+00:00Added an answer on May 26, 2026 at 11:18 am

    Docs in the release notes:

    • http://jquerymobile.com/blog/2011/08/03/jquery-mobile-beta-2-released/

    Example:

    $('#nameOfPage').trigger('create');
    

    Quote:

    New “create” event: Easily enhance all widgets at once

    While the page plugin no longer calls each plugin specifically, it
    does dispatch a “pagecreate” event, which most widgets use to
    auto-initialize themselves. As long as a widget plugin script is
    referenced, it will automatically enhance any instances of the widgets
    it finds on the page, just like before. For example, if the selectmenu
    plugin is loaded, it will enhance any selects it finds within a newly
    created page.

    This structure now allows us to add a new create event that can be
    triggered on any element, saving you the task of manually initializing
    each plugin contained in that element. Until now, if a developer
    loaded in content via Ajax or dynamically generated markup, they
    needed to manually initialize all contained plugins (listview button,
    select, etc.) to enhance the widgets in the markup.

    Now, our handy create event will initialize all the necessary plugins
    within that markup, just like how the page creation enhancement
    process works. If you were to use Ajax to load in a block of HTML
    markup (say a login form), you can trigger create to automatically
    transform all the widgets it contains (inputs and buttons in this
    case) into the enhanced versions. The code for this scenario would be:

    $( ...new markup that contains widgets... ).appendTo( ".ui-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 that some widgets have 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.

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

Sidebar

Related Questions

I'm creating a mobile website that will include a page from which people can
I'm using jQuery Mobile to create a mobile (obviously) website. I have a list
Any idea, how can we create already running website to Mobile Website? Are there,
I am trying to create a mobile website and can do it with just
Mobile Safari is a very capable browser, and it can handle my website as
i want users can log in my website throw FB connect ON MOBILE but
I'm trying to create a mobile website for android. When I set the width
My wish is to know how I can program a mobile website, that fit
I'm essentially creating a vertical breadcrumb to create a website navigation for a mobile
One certain page of my mobile website, I want to it so that when

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.