$(document).ready(SetupButtonClicks());
function SetupButtonClicks() {
$(\'#btnJavaPHP\').click(DoPHPStuff());
}
function DoPHPStuff() {
//stuff
}
<
With the exception of a function declaration, a pair of parentheses following a function's identifier causes the function to execute. Examples:
// function declaration; function not executed
function SetupButtonClicks() {
}
// function executed
SetupButtonClicks();
// function not executed
SetupButtonClicks;