Why doesn't any javascript function written inside document.ready be directly called from an event in jsp?
Eg:
$(document).ready(function(){
function abc()
{
//Some stuff here
}
});
From something like:
<input id="a" type="button" onclick="abc();">