jQuery provide a lot of form input selectors ( include input type selector, input status selector) for you to get form input web elements easily. Beside that, you can also use jQuery html tag attribute selector to get web elements by web element’s attribute values. This article will show you some example about that.
This example will show you how to use :contains and :has jQuery pseudo class selector to get web elements by web element content. And how to use :hidden and :visible selector to get web elements that is hidden or visible. It also tell you how to use child selector ( for example :first-child, :last-child etc) …
jQuery pseudo class selector is something like css class selector, it can help you to get the web element very easily and accurately. jQuery framework provide many pseudo class selectors, we will introduce them one by one by examples.
This example will show you how to use jQuery ascent and descendant selectors to change div and p html tag’s css style easily.
jQuery ancestor descendant selector use DOM nested relational structure to find the web elements accurately. There are four type of such selector as below. Each expression contains two selectors the first selector and the second selector. In different cases, the selector represent different hierarchy web element.