method

jQuery – The noConflict() Method

What if you wish to use other frameworks on your pages, while still using jQuery? jQuery and Other JavaScript Frameworks As you already know; jQuery uses the $ sign as a shortcut for jQuery. There are many other popular JavaScript…

jQuery – AJAX load() Method

jQuery load() Method The jQuery load() method is a simple, but powerful AJAX method. The load() method loads data from a server and puts the returned data into the selected element. Syntax: $(selector).load(URL,data,callback); The required URL parameter specifies the URL…

jQuery – AJAX Introduction

AJAX is the art of exchanging data with a server, and updating parts of a web page – without reloading the whole page. What is AJAX? AJAX = Asynchronous JavaScript and XML. In short; AJAX is about loading data in…

jQuery Traversing – Filtering

The first(), last(), eq(), filter() and not() Methods The most basic filtering methods are first(), last() and eq(), which allow you to select a specific element based on its position in a group of elements. Other filtering methods, like filter()…

jQuery Traversing – Ancestors

With jQuery you can traverse up the DOM tree to find ancestors of an element. An ancestor is a parent, grandparent, great-grandparent, and so on. Traversing Up the DOM Tree Three useful jQuery methods for traversing up the DOM tree…

jQuery – Dimensions

With jQuery, it is easy to work with the dimensions of elements and browser window. jQuery Dimension Methods jQuery has several important methods for working with dimensions: width() height() innerWidth() innerHeight() outerWidth() outerHeight() jQuery Dimensions

jQuery – Get and Set CSS Classes

With jQuery, it is easy to manipulate the style of elements. jQuery Manipulating CSS jQuery has several methods for CSS manipulation. We will look at the following methods: addClass() – Adds one or more classes to the selected elements removeClass()…