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”.
Sure, datebox has a
openmethodSo you can do something like
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
Dateboxplugin, 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 thez-indexhad to be changed in code (basically after the plugin was initialized). Here’s some example codeHTML
CSS
JS
Just a note I used the code/markup with a earlier version of
dateboxso thedata-optionsmay have changed a bit. I have since switched to using the MobiScroll plugin.