0

Possible Duplicate:
Disable keyboard input on Android TimePicker

I have a Jquery UI datepicker on an input type=text element

$( "#date" ).datepicker();

...

<input type="text" id="date"/>

Using dolphin browser on android, selecting the datepicker pops up a keyboard (as well as showing the datepicker itself..)

How can I disable that and not show the keyboard?

Thanks

Community
  • 1
  • 1
koela1
  • 225
  • 3
  • 11
  • 1
    possible dublicate http://stackoverflow.com/questions/2391216/disable-keyboard-input-on-android-timepicker – Dirty-flow Jan 14 '13 at 10:58
  • 1
    @Dirty-flow Disagree. That question is about `android` development, whereas this is about web development – Some Guy Jan 14 '13 at 10:59

1 Answers1

0

I finally found a way to achieve this.

Dolphin shows the keyboard if an input type=text element gets focus. (unbinding the focus event doesn't help)

So I remove focus from it when clicked:

$( "#date" ).click(function(event) 
{
    this.blur();
});
koela1
  • 225
  • 3
  • 11