Right now I have this code: $(function(){ var z=$("#getID").text(); }); document.write(z);
Obviously this does not work. But how can I make it work? In the situation I am in, I cannot put all the code inside the function...surely there must be some way. Thanks :)