InterviewSolution
| 1. |
What Are The Types Of Selectors That Are Used In Jquery? Give Examples? |
|
Answer» Jquery enables the user to select specifically the element that is to be effected. jquery allows the user to select in the following WAYS: jquery element selectors: with the use of CSS selectors the users can select the elements of an HTML document. For example: $("p") will select all the <p> elements. jquery attribute selectors: the xpath expressions are USED by jquery to select elements of an html document with defined attributes. For example: $("[href]") is used to select all elements which have an href attribute. Jquery enables the user to select specifically the element that is to be effected. jquery allows the user to select in the following ways: jquery element selectors: with the use of css selectors the users can select the elements of an html document. For example: $("p") will select all the <p> elements. jquery attribute selectors: the xpath expressions are used by jquery to select elements of an html document with defined attributes. For example: $("[href]") is used to select all elements which have an href attribute. |
|