Jquery is javascript library which contain thousand lines of Javascript codes,to make some regular work easier.You can DOWNLOAD latest version of it from here.It is embedded it HTML code using <Script arc="">. You can use it by downloading in same folder in which your HTML codes are.Otherwise you can use CDS(content delivery system such as google).Here is our helloworld.html using JQUERY.
<html>
<head>
<title>hello world</title>
</head>
<body>
<script src="jquery-1.9.1.js"></script> <!---download and attach latest JQuery -->
<script type="text/javascript"> <!---start script tag--->
$(document).ready(function() { <!----$(document).ready(function(){ }); is function that will load after all the document will ready to diaplay--->
alert("hello world"); <!---this will show a alert box with "hello world"-->
});
</script>
</body>
</html>
Follow my blog with Bloglovin
No comments:
Post a Comment