I am facing one problem I am trying to call document.ready() function inside another JavaScript function but when I am calling it, it says "function is not defined
Here is my code : this is first function that is document.ready() function
$(document).ready(function ExpandMessageBox() {// this is my document.ready function. I have given the name of it as "ExpandMessageBox"}
this is another regular JavaScript function in which I am trying to call above function
function ShowMessageBox() {
ExpandMessageBox();}
But this is giving me an error as : "Uncaught ReferenceError: ExpandMessageBox is not defined"
Where I am doing wrong... Please Help
Tons of thanks in advance