onClick

Adding Click event

$('.button').onClick(function(e){
//perform action here
 this.width(500);
});

//(optionaly) passing other options to controll bubbles  
$('.button').onClick(function(e){
//perform action here
},{...});

Last updated