Create Simple helloworld.html file and copy past the below code. And open that file into browser It will display "Hello World.." alert message on page load. We are downloading Jquery.js from google api service.
<html>
<head>
<title>JQuery Hello World Example</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<script type="text/javascript">
$(document).ready(function(){
alert('Hello World..');
});
</script>
</html>
With $(document).ready(), you can get your events to load or fire or whatever you want them to do before the window loads. i.e do something on document ready.
Hi I am Yashwant founder of www.technicalkeeda.com, Purpose of this website to share the programming knowledge in the form post , blogs and articles.