Class
jQuery

Provide jQuery selector syntax support. Version 1.3 - http://docs.jquery.com/Selectors

Definition

Namespace:ArtOfTest.WebAii.jQuery

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class jQuery

Inheritance: objectjQuery

Methods

all()

Matches all elements.

Declaration

cs-api-definition
public IList<Element> all()

Returns

IList<Element>

all<T>()

Matches all elements as a strongly typed control.

Declaration

cs-api-definition
public IList<T> all<T>() where T : HtmlControl, new()

Returns

IList<T>

attributes(params string[])

Filter based on the attributes.

Declaration

cs-api-definition
public jQuery attributes(params string[] attributeFilters)

Parameters

attributeFilters

string[]

Returns

jQuery

button()

Filter on all input type=button

Declaration

cs-api-definition
public IList<HtmlInputButton> button()

Returns

IList<HtmlInputButton>

checkbox()

Filter on all input type=checkbox

Declaration

cs-api-definition
public IList<HtmlInputCheckBox> checkbox()

Returns

IList<HtmlInputCheckBox>

child()

Matches all child elements only. 'parent > child', http://docs.jquery.com/Selectors/child#parentchild

Declaration

cs-api-definition
public jQuery child()

Returns

jQuery

classes(params string[])

Matches all elements with the given class or classes.

Declaration

cs-api-definition
public jQuery classes(params string[] classes)

Parameters

classes

string[]

1 to n classes to match on the query

Returns

jQuery

The query match

contains(string)

Matches all elements that contain specific text. It's case sensitive.

Declaration

cs-api-definition
public jQuery contains(string text)

Parameters

text

string

Returns

jQuery

descendant()

Matches all descendant elements.

Declaration

cs-api-definition
public jQuery descendant()

Returns

jQuery

empty()

Matches all elements that have no children (including text nodes).

Declaration

cs-api-definition
public jQuery empty()

Returns

jQuery

eq(int)

Matches a specific index

Declaration

cs-api-definition
public Element eq(int index)

Parameters

index

int

Returns

Element

even()

Matches even elements, zero-indexed.

Declaration

cs-api-definition
public jQuery even()

Returns

jQuery

file()

Filter on all input type=file.

Declaration

cs-api-definition
public IList<HtmlInputFile> file()

Returns

IList<HtmlInputFile>

first()

Matches the first selected element.

Declaration

cs-api-definition
public Element first()

Returns

Element

first<TControl>()

Matches the first selected element.

Declaration

cs-api-definition
public TControl first<TControl>() where TControl : HtmlControl, new()

Returns

TControl

firstChild()

Matches all elements that are the first child of their parent.

Declaration

cs-api-definition
public jQuery firstChild()

Returns

jQuery

gt(int)

Matches index greated than

Declaration

cs-api-definition
public jQuery gt(int index)

Parameters

index

int

Returns

jQuery

header()

Matches all header elements.

Declaration

cs-api-definition
public jQuery header()

Returns

jQuery

id(string)

Matches a single element with the given id attribute.

Declaration

cs-api-definition
public Element id(string id)

Parameters

id

string

An ID to search for, specified via the id attribute of an element

Returns

Element

The first matched element else null.

id<TControl>(string)

Matches a single element with the given id attribute.

Declaration

cs-api-definition
public TControl id<TControl>(string id) where TControl : HtmlControl, new()

Parameters

id

string

The control id

Returns

TControl

image()

Filter on all input type=image

Declaration

cs-api-definition
public IList<HtmlInputImage> image()

Returns

IList<HtmlInputImage>

input()

Filter on all 'input' elements.

Declaration

cs-api-definition
public IList<HtmlInputControl> input()

Returns

IList<HtmlInputControl>

last()

Matches the last selected element.

Declaration

cs-api-definition
public Element last()

Returns

Element

last<TControl>()

Matches the last selected element.

Declaration

cs-api-definition
public TControl last<TControl>() where TControl : HtmlControl, new()

Returns

TControl

lastChild()

Matches all elements that are the last child of their parent.

Declaration

cs-api-definition
public jQuery lastChild()

Returns

jQuery

lt(int)

Matches index less than.

Declaration

cs-api-definition
public jQuery lt(int index)

Parameters

index

int

Returns

jQuery

next()

Matches all next elements. 'prev + next', The immediate next sibling. http://docs.jquery.com/Selectors/next#prevnext

Declaration

cs-api-definition
public jQuery next()

Returns

jQuery

odd()

Matches odd elements, zero-indexed.

Declaration

cs-api-definition
public jQuery odd()

Returns

jQuery

onlyChild()

Matches all elements that are the only child of their parent.

Declaration

cs-api-definition
public jQuery onlyChild()

Returns

jQuery

parent()

Matches all elements that are parents - they have child elements, including text.

Declaration

cs-api-definition
public jQuery parent()

Returns

jQuery

password()

Filter on all input type=password

Declaration

cs-api-definition
public IList<HtmlInputPassword> password()

Returns

IList<HtmlInputPassword>

radio()

Filter on all input type=radio

Declaration

cs-api-definition
public IList<HtmlInputRadioButton> radio()

Returns

IList<HtmlInputRadioButton>

reset()

Filter on all input type=reset

Declaration

cs-api-definition
public IList<HtmlInputReset> reset()

Returns

IList<HtmlInputReset>

siblings()

Matches all sibling elements. 'prev ~ siblings', All next sibling elements. http://docs.jquery.com/Selectors/siblings#prevsiblings

Declaration

cs-api-definition
public jQuery siblings()

Returns

jQuery

submit()

Filter on all input type=submit

Declaration

cs-api-definition
public IList<HtmlInputSubmit> submit()

Returns

IList<HtmlInputSubmit>

tag(string)

Matches all elements with the given tag name.

Declaration

cs-api-definition
public jQuery tag(string element)

Parameters

element

string

The tag name to match

Returns

jQuery

The query match.

text()

Filter on all input type=text.

Declaration

cs-api-definition
public IList<HtmlInputText> text()

Returns

IList<HtmlInputText>