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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:02:36+00:00 2026-05-21T16:02:36+00:00

I am creating one application with jquery.mobile-1.0a4.1 release. I have a page which is

  • 0

I am creating one application with jquery.mobile-1.0a4.1 release. I have a page which is having input form to get details. It has date field , so for that I used jquery.mobile.datebox . See http://dev.jtsage.com/ for its demo.
I am facing one issue with it, when I set particular date value for date field on page-load , the value is shown in textbox. But when user click on date-picker icon- the calendar still highlight today’s date and show current month only.

If anybody has used the same control then please help about , how to achieve like if there is any date value the text box then when you launch the datepicker, it should start from that date.
For eg. here I am setting date of March month, then ,when user clicks on datepicker , march month calendar should be shown.

Here is my code file.

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
        <title>Detailed information</title>
        <link rel="stylesheet" href="jquery.mobile-1.0a4.1.min.css" />
        <link rel="stylesheet" href="jquery.mobile-1.0a4.1.css" />
        <link type="text/css" href="jquery.mobile.datebox.css" rel="stylesheet" />
        <script type="text/javascript" src="jquery-1.5.min.js"></script>
        <script type="text/javascript">
        $( document ).bind( "mobileinit", function(){
            $.mobile.page.prototype.options.degradeInputs.date = 'text';            

        }); 
        </script>       
        <script type="text/javascript" src="jquery.mobile-1.0a4.1.min.js"></script>
        <script type="text/javascript" src="jquery.mobile.datebox.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
            //Setting start date value on pageload 
            $('#startdate').val('2011-03-20');
        </script>
    </head>
    <body>
        <div data-role="page" id="home">
            <div data-role="header" data-position="inline">
                <a href="daily_schedule.html" rel="external" data-icon="arrow-l">back</a>
                <h1>Detailed Information</h1>
            </div>
            <div data-role="content">
                <form action="" method="get" onsubmit="validate();" id="frmdetailedinfo">
                    <div data-role="fieldcontain">
                        <input readonly="true"  name="startdate" type="date" data-role="datebox" id="startdate" data-options='{"mode": "calbox", "useDialogForceFalse": true, "noAnimation": true}'/>
                    </div>
                    <div data-role="fieldcontain">
                        <fieldset class="ui-grid-a">
                            <div class="ui-block-a">
                                <button type="submit" data-theme="a" name="submit" data-icon="check" value="submit-value">
                                    Save
                                </button>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
            <!--content-->
        </div>
        <!--page-->
    </body>
</html>
  • 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-21T16:02:37+00:00Added an answer on May 21, 2026 at 4:02 pm

    You have to set it in the tag itself:

    <input readonly="true"  
           name="startdate" 
           type="date" 
           data-role="datebox" 
           id="startdate" 
           data-options='{
               "mode": "calbox", 
               "useDialogForceFalse": true, 
               "noAnimation": true
            }'/>
    

    Becomes this

        <input readonly="true"  
           name="startdate" 
           type="date" 
           data-role="datebox" 
           id="startdate" 
           data-options='{
               "mode": "calbox", 
               "useDialogForceFalse": true, 
               "noAnimation": true,
               "defaultDate": "1999-03-20" // Add Default Date
            }'/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've creating one ASP web application, in that application one form have to update
I am creating an application for the iPhone which involves having more than one
I am creating one application in .net MVC, in which I am using jQuery
I am creating one android application in which I am using one form for
I am creating one application in java-script which fetch information form LinkedIn which we
I am creating one android application which will have API to create a new
I am creating one application in which i am using jsp/servlet.. I want to
I'm creating an iPad application which needs a UIPopoverController like this one (I mean,
im writing application on asp mvc. so, i have jQuery tabs on index.aspx, which
I am creating an MVC mobile application. One of my screens contains radio buttons

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.