jquery document ready with Google
- by cf_PhillipSenn
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?