jQuery mobile events not working
Can anybody tell me why the jquery mobile events like tab or tabhold are not working for me?
touchmove, touchstart and touchend are just working fine but the jquery ones arent..
- <head>
- <script type="text/javascript">
- $(document).on("pageinit",
- function () {
- init();
- }
- );
- </script>
- </head>
- function init() {
- ...
- setEventHandler();
- }
- function setEventHandler() {
- $(".block").on("tabhold",
- function (e) {
- e.preventDefault();
- editid=$(this).parent().attr("id");
- editing=true;
- loadEdit();
- $("#editpopup").popup("open");
- }
- );
- }