What is SWC?
Shock Wave Components are component files for Flash and Flex. A component is a movie clip or compiled clip that the Flash developer can drag out of the Components panel into a FLA file. The movie clip should be exported for ActionScript and also should expose parameters that can be set in the Parameters tab of the Property inspector or in the Components Continue reading →
:hidden Selector
Selects all elements that are hidden.
Elements can be considered hidden for several reasons:
- They have a display value of none.
- They are form elements with type=”hidden”.
- Their width and height are explicitly set to 0.
- An ancestor element is hidden, so the element is not shown on the page.
An element is assumed to be hidden if it or any of its parents consumes no space in the document. CSS visibility isn’t taken into account (therefore $(elem).css('visibiity','hidden').is(':hidden') == false).
Usage:
jQuery(':hidden')
//or
$(':hidden')
Example: http://api.jquery.com/hidden-selector/
Continue reading →
2. Hierarchy
2.1 Child Selector (“parent > child”)
Selects all direct child elements specified by “child” of elements specified by “parent”.
// Example :
$('li > ul')
2.2 Descendant Selector (“ancestor descendant”)
Selects all elements that are descendants of a given ancestor.
// Example:
$('div p')
2.3 Next Adjacent Selector (“prev + next”)
Selects all next elements matching “next” that are immediately preceded by a sibling “prev”. Continue reading →
Why?
jQuery requires a target to perform each action, for example, in order to hide or show an element on the page, first we must find that element. To do so, jQuery rely on jQuery’s selector expressions. Borrowing from CSS 1–3, and then adding its own, jQuery offers a powerful set of tools for matching a set of elements in a document.
List of jQuery Selectors.
In jQuery around 9 group of selector types are available. ie Basics, Hierarchy, Basic Filters, Content Filters, Visibility Filters, Attribute Filters, Child Filters, Forms, Form Filters. Continue reading →
1. What is $ in jQuery?
The $ represents the jQuery Function, and is actually a shorthand alias for jQuery. Prototype, jQuery, and most javascript libraries use the $ as the primary base object (or function). Most of them also have a way to relinquish the $ so that it can be used with another library that uses it. In that case you use “jQuery” instead of “$”. In fact, “$” is just a shortcut for “jQuery”. JavaScript allows upper and lower letters, numbers, and $ and _. The $ was intended to be used for machine-generated variables (such as $0001).
2. How to use?
You can load the jquery class from Google AJAX Libraries API. Continue reading →