jQuery Hello World

In the following example, we are defining a div with id div1, and in the script portion we are getting that divid and changing HTML in it to Hello world.

<html>
<head>
<title>jQuery Hello World</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
</head>
<body>
	<script type="text/javascript">
$(document).ready(function(){
	// Getting Element by id and changing html in it
 $("#div1").html("Hello World");
});
</script>
	<div id="div1"></div>
</body>
</html>