avireni
4/13/2012 - 11:18 PM

Bind a function to an event

Bind a function to an event

$('#foo').bind('click', function() {
  alert('User clicked on "foo."');
});