How to attach an inline DOM event handler?
Compact syntax with timing methods:
1
$('.some').click($).doSome().jQueryStuff();
The jQuery token $ is used instead of a callback function to indicate the usage as inline event handler.
Compare this to the old way with more syntactic fluff:
1
2
3
$('.some').click(function(){
$(this).doSome().jQueryStuff();
});