jquery document ready with Google
Posted
by cf_PhillipSenn
on Stack Overflow
See other posts from Stack Overflow
or by cf_PhillipSenn
Published on 2010-03-29T20:09:32Z
Indexed on
2010/03/29
20:13 UTC
Read the original article
Hit count: 324
jQuery
This is how I load jQuery:
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
function OnLoad() {
insert jQuery goodness here
};
google.load("jquery", "1");
google.setOnLoadCallback(OnLoad);
</script>
But instead of function OnLoad() {, I'd like to use
$(document).ready(function() {}
so that it's like every example in every book and documentation snippet.
How can I define: $ = jQuery?
© Stack Overflow or respective owner