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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:16:42+00:00 2026-06-10T04:16:42+00:00

The current jquerymobile implementation of datebox (or some plugin like jtsage) pops up a

  • 0

The current jquerymobile implementation of datebox (or some plugin like jtsage) pops up a datebox for text input. Is there anyway to extend it to cases where I want to show the datebox when the user click a label (or any random text)?

For example, in my case http://jsfiddle.net/sonyisme/UEmh3/1/, I want to show the datebox when users click on the text “8/1/2012-8/7/2012”.

  • 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-10T04:16:44+00:00Added an answer on June 10, 2026 at 4:16 am

    Sure, datebox has a open method

    So you can do something like

    $('#myLabel').on('click', function() {
      $('#mydate').datebox('open');
    });
    

    Edit:

    OK so you don’t want a input displayed at all, as I mentioned in my comment I did something like that once with the Datebox plugin, what I needed to do was wrap it in a div that I just hid from the viewport by setting it’s z-index to -1. The thing is the z-index had to be changed in code (basically after the plugin was initialized). Here’s some example code

    HTML

     <div  class="hdnDateBoxCnt width25Percent"> 
                      <input type="date" name="myDateBox" id="myDateBox" data-role="datebox"
                         data-options='{"mode":"calbox",  "disableManualInput": true, "noButtonFocusMode": true}' />
      </div>
    

    CSS

    .hdnDateBoxCnt 
    {
      position:absolute;
      /* z index needs to be set in code */   
    }
    

    JS

    $('.hdnDateBoxCnt').css('z-index', '-1');
    

    Just a note I used the code/markup with a earlier version of datebox so the data-options may have changed a bit. I have since switched to using the MobiScroll plugin.

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

Sidebar

Related Questions

I am using the DateBox ( http://dev.jtsage.com/jQM-DateBox/ ) plugin for a page with the
current code (not working): /^script\s*type=\text\/javascript/i.test(tagName)
Current tinyMCE version (3.5.2). Hi, I am working on a custom plugin which adds
Current code: $(document).ready(function(){ $('#go').hover( function(){ // Change the input image's source when we roll
I'm working on a jQueryMobile application with some form fields that need auto complete
The current xml output looks like: <response xmlns:i=http://www.w3.org/2001/XMLSchema-instance> <totalResultCount>10</totalResultCount> <results xmlns:a=http://schemas.microsoft.com/2003/10/Serialization/Arrays> <a:anyType i:type=result> <EmployeeCode>007</EmployeeCode>
Current verbose rails path helpers I'm constantly writing code to get URLs like: link_to
My current development project has two aspects to it. First, there is a public
I have some jquery-scripts which I want to put into a plugin. In my
Possible Duplicate: Javascript hard refresh of current page Is there a way to refresh

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.