質問

I wrote a widget for selecting date ranges using jQuery because of the easy usage of the selectable plugin, only to find out that it does not work for iPad and iPhone (and presumably other touch devices as well.

Is there any plugin / patch or anything I can use to get the code running on touch devices?

役に立ちましたか?

解決

http://touchpunch.furf.com/

jQuery UI Touch Punch. It's a hack that turns touch events into click events. Should be perfect for what you're doing. The documentation is super clear and implementation is a simple:

<script type="text/javascript" src="jquery.ui.touch-punch.js"></script>

Give it a try!

EDIT: Fixed a spelling error

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top