jquery distinguish click from touchstart code example Example: jquery click or touch $(document).on('click touchstart', function () {