nshah
nshah

Reputation: 597

jQuery Mobile Date & Time Input Not Working

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!

Upvotes: 0

Views: 1024

Answers (1)

Vaibs_Cool
Vaibs_Cool

Reputation: 6156

<script>
  //reset type=date inputs to text
  $( document ).bind( "mobileinit", function(){
    $.mobile.page.prototype.options.degradeInputs.date = true;
  });   
</script>

Upvotes: 1

Related Questions