Skip to content

Instantly share code, notes, and snippets.

@partkyle
Created November 18, 2011 08:47
Show Gist options
  • Save partkyle/1375937 to your computer and use it in GitHub Desktop.
Save partkyle/1375937 to your computer and use it in GitHub Desktop.
// Basic function definition
function function_name (argument) {
// body...
}
function function_name (argument)
{
// body...
}
// jQuery function with a single anonymous function as an argument
$('test').click(function ()
{
// this is the code here
}
);
$('test').click(function ()
{
// this is the code here
});
$('test').click(function ()
{
// this is the code here
});
$('test').click(
function ()
{
// this is the code here
});
$('test').click(
function ()
{
// this is the code here
}
);
$('test').click
(
function ()
{
// this is the code here
}
);
$('test').click(function ()
{
// this is the code here
}
);
// jQuery function with multiple argument (including an anonymous function)
$('test').bind('click',
function ()
{
// this is the code here
}
);
$('test').bind(
'click',
function ()
{
// this is the code here
}
);
$('test')
.bind(
'click',
function()
{
}
);
$('test').click(function () {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment