Click the download link and save the JavaScript file to a new working folder, ready for playing with. You’ll need to put it where our HTML files can see it: commonly in a scripts or javascript directory beneath your site’s document root To make it all work, we need to tell our HTML file to include the jQuery library.
<head>
<title>Hello jQuery world!</title>
<script type='text/javascript' src='jquery-1.4-min.js'></script>
<script type='text/javascript' src='script.js'></script>
</head>
The first script tag on the page loads the jQuery library, and the second script tag points to a script.js file, which is where we’ll run our own jQuery code.
Showing posts with label JQuery. Show all posts
Showing posts with label JQuery. Show all posts
Saturday, January 15, 2011
Friday, January 14, 2011
What’s so good about jQuery?
You’ve read that jQuery makes it easy to play with the DOM, add effects, and execute
Ajax requests.
Cross browsing
One of the biggest benefits of jQuery is that it handles a lot of infuriating cross-browser issues for you.
Support CSS3
jQuery also fully supports the upcoming CSS3 selector specification.
Utilities
Also included is an assortment of utility functions that implement common functions useful for writing jQuery (or are missing from JavaScript!): string trimming, the ability to easily extend objects, and more.
Support() function
One noteworthy utility is the supports function, which tests to find certain features are available on the current user’s browser
Widgets and Effects
JQuery has already been used to make some impressive widgets and effects.
Plugin
The jQuery team has taken great care in making the jQuery library extensible. By including only a core set of features while providing a framework for extending the library, they’ve made it easy to create plugins that you can reuse in all your jQuery projects, as well as share with other developers.
Clean markup
jQuery makes it a cinch to completely rid your markup of inline scripting, thanks to its ability to easily hook elements on the page and attach code to them in a natural
Ajax requests.
Cross browsing
One of the biggest benefits of jQuery is that it handles a lot of infuriating cross-browser issues for you.
Support CSS3
jQuery also fully supports the upcoming CSS3 selector specification.
Utilities
Also included is an assortment of utility functions that implement common functions useful for writing jQuery (or are missing from JavaScript!): string trimming, the ability to easily extend objects, and more.
Support() function
One noteworthy utility is the supports function, which tests to find certain features are available on the current user’s browser
Widgets and Effects
JQuery has already been used to make some impressive widgets and effects.
Plugin
The jQuery team has taken great care in making the jQuery library extensible. By including only a core set of features while providing a framework for extending the library, they’ve made it easy to create plugins that you can reuse in all your jQuery projects, as well as share with other developers.
Clean markup
jQuery makes it a cinch to completely rid your markup of inline scripting, thanks to its ability to easily hook elements on the page and attach code to them in a natural
Labels:
JQuery
Subscribe to:
Posts (Atom)