How To Use jquery
The JavaScript library that focuses on the relations between HTML and JavaScript is known as jQuery.
Becoming highly popular these days, this JavaScript framework can be used quickly and easily so as to create custom plugins and components. In this article, you will be provided with some of the important tips and instructions to use jquery.
Steps:
1. Marking External Links: you can easily mark outgoing links in the JavaScript by means of special symbols. You can start by marking all the internal links by means of a forward slash.
2. Using Bullets: You can use your own bullets like an EM dash or include an image rather than the usual square bullets and circle. In such a manner, you can add an additional class to every affected ul element. Thus, you can apply any alternate styling for your jquery as needed to the list.
3. Switching a Stylesheet: You can easily change a style switch for your viewer in the form of print style or even high contrast style by some easy techniques. You can do this if you have a set of links having unique IDs. You can also use a cookie function so as to store the style that your viewer needs.
4. Moving visual effects: if you wish to move visual effects to the presentation layer you need to concentrate on the behavior while writing javascript. Adding classes rather than the conventional CSS properties is a good idea. Make sure to evade glamour and fades within the functions. You can also save the effect for a later demo.
5. Debugging: you can debug whenever required while just typing consol.log( ). However, remember to take them away prior to production since most of the browsers tend to choke on them.
6. Altering the first paragraph: You can simply alter the first paragraph after each header of your website.
7. Encapsulating the custom alias: Other than the dollar ($) shorthand that is commonly used in the jQuery framework, you can even custom alias instead.
You can even define custom callbacks so that the developer can allocate callbacks as parameter functions.
This article is copyright and can not be republished.
Source: http://www.ghowto.com/technology/how-to-use-jquery.html





