IT. Expert System.

JQUERY

Syntax


Syntax

The jQuery syntax is tailor made for selecting HTML elements and perform some action on the element(s).

The basic syntax is:

$(selector).action()
  • A dollar sign ( $ ) to define jQuery
  • A (selector) to "find" HTML elements
  • A jQuery action() to be performed on the selected element(s)

Example 1: Hides the current element

$(this).hide()

Example 2: Hides all paragraphs

$("p").hide()

Example 3: Hides all paragraphs with class="test"

$("p.test").hide()

Example 4: Hides the element with id="test"

$("#test").hide()

The Document Ready Function

Many jQuery actions can fail if they are run before the document is fully loaded. To prevent this, it is recommended to wrap all jQuery functions in a document ready function as follows:

$(document).ready(function(){

// jQuery functions go here...

});

This will ensure that jQuery functions won't fail due to unloaded pages.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 832 / 158859880. Delta: 0.00131 с