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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:06:02+00:00 2026-05-25T17:06:02+00:00

So I am using the Date Picker input from Jquery Mobile and am having

  • 0

So I am using the Date Picker input from Jquery Mobile and am having some difficulty getting it to render properly. I have inclueded all the necessary files (http://dev.jtsage.com/jQM-DateBox/#/jQM-DateBox/demos/install.html) provided by the JQM team, and can get it to render when I add it directly to the static HTML:

<label for="mydate">Some Date</label>
<input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "calbox"}'>

However, I am building a form dynamically and am adding this bit of HTML on the fly. All of my other inputs are getting the Jquery Mobile styles except this one doing the following:

$(form).html(formFields);               
var page = document.getElementById('page');
$(page).trigger('create');  

formFields is the HTML string I am appending to the page.

It would appear that in the static HTML page above, when the page loads JQM is adding a bunch of stuff to that code. It does not appear to be doing the same when I invoke the create method. Does anyone have any idea if there is someway around this? Thanks in advance.


UPDATE:
So with the helpful comment posted below, it would appear that since this is no an official JQM input, calling the ‘create’ method will not refresh this input and apply the necessary styles. The HTML posted above is exactly what I am creating with my string builder. The problem lay with the refreshing. When the page loads, a bunch of extra stuff is added to the date input HTML. Below is what it looks like in firebug… Any one experience this?

<div class="ui-input-datebox ui-shadow-inset ui-corner-all ui-body-c">
  <input id="mydate" class="ui-input-text ui-body-null ui-body-x" type="text" data-   options="{'mode': 'calbox'}" data-role="datebox" name="mydate">
  <a class="ui-input-clear ui-btn ui-btn-up-c ui-btn-icon-notext ui-btn-corner-all ui-shadow" title="date picker" href="#" data-theme="c" style="vertical-align: middle; float: right;">
     <span class="ui-btn-inner ui-btn-corner-all">
       <span class="ui-btn-text">date picker</span>
       <span class="ui-icon ui-icon-grid ui-icon-shadow"></span>
     </span>
  </a>

  • 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-25T17:06:03+00:00Added an answer on May 25, 2026 at 5:06 pm

    Alright folks, figured it out.

    It turns out that it wasn’t getting the styles applied, even after calling the “create” method. So I turned to a hack that has been floating around the web. I basically just destroyed the whole form and rebuilt it like this:

    $('#page').page("destroy").page();
    

    Page was the name of the content pane where the form was living. Reloaded simple as that. Hope that helps some of you guys out there…

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

Sidebar

Related Questions

I am using the datepicker control from jQuery-ui 1.8. from-date is a text input.
Basically I'm using datepicker from jQuery to have my client pick a date. I
I have a Date Input text box generated by jquery Date Picker which is
I have a textfield that users input the date using a modified jquery datepicker.
I am using the date picker provided by jQuery UI to select a date
I am using the jQuery Date picker, but it is too heavy, the minified
I am attempting to construct my own date picker using code from several sources.
I am attempting to construct my own date picker using code from several sources.
I am using the jQuery date picker calendar in a form. Once submitted the
I am using the ui date picker widget here: http://jqueryui.com/demos/datepicker/ to populate this: <input

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.