background preloader

.commandes()

Facebook Twitter

Ajax. Description: Perform an asynchronous HTTP (Ajax) request.

ajax

The $.ajax() function underlies all Ajax requests sent by jQuery. It is often unnecessary to directly call this function, as several higher-level alternatives like $.get() and .load() are available and are easier to use. If less common options are required, though, $.ajax() can be used more flexibly. At its simplest, the $.ajax() function can be called with no arguments: .remove. Description: Remove the set of matched elements from the DOM.

.remove

Similar to .empty(), the .remove() method takes elements out of the DOM. Use .remove() when you want to remove the element itself, as well as everything inside it. .toggle. Description: Display or hide the matched elements.

.toggle

Note: The event handling suite also has a method named .toggle(). Which one is fired depends on the set of arguments passed. With no parameters, the .toggle() method simply toggles the visibility of elements: The matched elements will be revealed or hidden immediately, with no animation, by changing the CSS display property.