0

jquery mobile provides its own way for inputting date and time, which is

<input type = "date" />
<input type = "time" />

This is working fine on a browser and on some phones (android). It brings up the native menu with the slide bar to select times and date. However, on an android tablet, it does not work and the input simply serves as any regular text input.

I tried using the datepicker plugin before but it was very slow...

Is there any way i can fix this issue? Or are there any useful, simple plugins I can use?

Thanks!

1 Answer 1

1
<script>
  //reset type=date inputs to text
  $( document ).bind( "mobileinit", function(){
    $.mobile.page.prototype.options.degradeInputs.date = true;
  });   
</script>
1
  • in your comment you said this resets the date inputs to text? i dont want it to...
    – nshah
    Sep 6, 2013 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.