Somewhy line
$(document).on(eventType, handler);
throws an error
TypeError: $(...).on is not a function
What is done incorrectly?
PS: If that helps I’m including jquery lib with the following line
<script src="src/libs/jquery-1.6.1.js"> </script>
onwas only included in jQuery 1.7 and above. For an alternative, usedelegate(or if it’s possible, upgrade your jQuery).Example of delegate: