I know that you can have more than on document ready event without difficulty. i.e.
$(function(){ // document ready 1 }); $(function(){ // document ready 2 }); The question I have is, is there any way for them to call functions from one to the other? The following does not work: $(function(){ function displayMessage(){ alert('hello world'); }; }); $(function(){ displayMessage(); }); This invokes a js error complaining that displayMessage() is not defined. Thanks in advance for any thoughts, Brian