Hello Guys,
So I am building a form dynamically from a JSON string, and I want to include a datepicker. The problem is, I can't seem to get the JQM styles applied to the object after the from is built. I am doing this:
- $(form).html(formFields);
- $(form).trigger('create');
Which works great for all the other JQM styled inputs. I understand that the datepicker is not included in the framework as of beta 3. I tried implementing one of the datepicker plugins, in particular this one:
https://github.com/jtsage/jquery-mobile-datebox
This works great if I add it to the HTML before the form is created, but if I try and add it dynamically, it doesn't work. Anyone have any suggestions? Thanks