jQuery Hello World example



User Rating:  / 0
PoorBest 
Details
Category: jQuery
Created on Thursday, 09 February 2012 21:16
Last Updated on Thursday, 09 February 2012 22:41
Published on Thursday, 09 February 2012 21:16
Written by Administrator
Hits: 6797

Hello World with jQuery :

View source
<html>
<head>
 
jQuery Hello World
 
 
<script type="text/javascript" src="jquery-1.4.2.js">
 
</head>
 
<script type="text/javascript">
 
$(document).ready(function(){
 $("#flag").html("Hello World !! (display due to jQuery)");
});
 
</script>
<body>
<font color=red> 
Hello World !! (display due to HTML)
</font>
<font color=blue>
<div id="flag">
</div>
</font>
</body>
</html>