Skip to content

Instantly share code, notes, and snippets.

@ryan5500
Created April 11, 2010 06:21
Show Gist options
  • Save ryan5500/362543 to your computer and use it in GitHub Desktop.
Save ryan5500/362543 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='jquery.js'></script>
<script type='text/javascript'>
$(function() {
//invoke here when dom is ready
alert($('#main').text());
});
</script>
</head>
<body>
<h1 id='main'>dom is ready</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment