Event
on
This method has shortcut aliases for:
- click
- load
- touchstart
- touchmove
- touchend
- touchcancel
- gesturestart
- gesturechange
- gestureend
- orientationchange
Syntax
x$('button').on( 'click', function(e){ alert('hey that tickles!') });
Or
x$('a.save').click(function(e){ alert('tee hee!') });
Example
x$(window).load(function(e){
x$('.save').touchstart( function(evt){ alert('tee hee!') }).css(background:'grey');
});