Total members 11895 |It is currently Tue Dec 03, 2024 7:08 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





JQuery is a free javascript library that ease the usage of javascript technology in the development of the website, with JQuery you write less and get more ! JQuery is free and you can download its latest version from :

http://jquery.com/

It is just one file you can include it as following :
Code:
<head>
<script src="jquery-1.8.2.min.js"></script>
</head>

JQuery is the most famous Javascript library and it is used by many big companies such as GOOGLE and IBM. Instead of downloading the JQuery package you can just link to the one used in GOOGLE as following :
Code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
</script>


There are some advantages of linking to JQuery on Google like :
1- Faster Loading time ( As the JQuery file may be cached at your browser because others website you may already visited using it )
2. Second getting the latest version automatically.

The syntax of JQuery is as follows :
Code:
$(selector).dosomething()

for example :
Code:
$("p").hide()  // Hide all paragraphs

or
Code:
$(".divA").hide()  // Hide all html elements with class .divA


So in brief, with JQuery you will be selecting html elements from the current document and doing some actions on it, important hint before you start that you should wait until the document is loaded before you start JQuery actions and this is handled by calling ready function :
Code:
$(document).ready(function(){

   // use JQuery Here.

}); 
 


For examples about JQuery please visit section below :
jquery-examples/



_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : How to start JQuery
 PHP Start and End Tags     -  
 how to start java .     -  
 start a new line in html     -  
 How to start MFC window-programming     -  
 start Macromedia Flash     -  
 Template to start HTML5     -  
 Start background image from its bottom     -  
 Want start and end date of a month from current date     -  
 check if string start with a specific sub-string in PHP     -  
 Using firebug with JQuery     -  



Topic Tags

JQuery Basics






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com