Tuesday, December 21, 2010

jQuery

              jQuery



today i getting started with jQuery ..it is an javascript library ..it is simple light weight and more elegant ...we can do more customization becuase its is fully open source we can animate and navigate the objects and play
around with them

Steps to install jQuery

   download the latest version of the jquery from jquery website
                http://jquery.com/

   just click the download button u will get a javascript huge code just
 right  the mouse and save the page as jquery.js for our convenience we can save it anywhere the file in desktop or file system where it may be


Getting started with jQuery

          just open the notepad or vi editor or gedit  declare html tags
head,body,and all

in the script tag you specify the source "jquery.js"

jQuery is easy to learn just knowing of Html and javascript and css basics is enough

<script type ="text/javscript" src="jquery.js">
</script>



My First programme in jQuery

<html>

<head>

<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript">

$(document).ready(function(){

  $("p").click(function(){

  $(this).hide();

  });

});

</script>

</head>

<body>
<p>If you click this sentence this will disappear </p>
</body>

</html>


      

1 comment: