jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Dynamic Jquery Mobile DATE BOX is not setting date in IOS device #205

Closed rajeevdave closed 12 years ago

rajeevdave commented 12 years ago

I am dynamically creating datebox and setting date dynamically , It is working fine in Andriod but when I take this code to IOS it display date box but does not set any date on that.

When I place Datebox in BODY it works fine.

I am using

Jquery.mobile.datebox.js jquery.mobile.databse.css

jtsage commented 12 years ago

Any chance you can repost this with a code example on stackoverflow (tag it 'datebox') - I am way, way behind and find myself unable to keep up with support requests. Thanks!

TrekSoft commented 11 years ago

I recently experienced this issue myself and found a workaround - apparently when the datebox is created dynamically on the iOS device by adding the code and only triggering the JQueryMobile "create" method on the parent element, the datebox is created as a "date" type input element which causes it not to accept the value being passed from the popup, I guess.

The workaround was to change the input type to "text". However, the downside to this is that it doesn't work on a desktop version of Chrome now. Any thoughts jtsage?

PS: Thank you so much for making this great plugin and working so hard to support it @jtsage. I work on a special mobile app development team at AT&T and we use it a lot!