Event

on

This method has shortcut aliases for:

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'); 
});