pass string on $(document).ready
Hi there. When i used the good old onload function of the body i could easilly pass a php generated string value to the onload function, lets say the username of the currently loged user. How can i do the same with jquery and $(document).ready() function? The only way that i can think of is to set up a hidden input field of via session or cookie...But there must be a better way