jQuery - Selector: XPath SelectorsTag: jQuery, $(), factory, function, selectors, XPath Category: JavaScriptpost: 21 Mar 2008 read: 573 jQuery Selector Step By Step Tutorial - Part 4: XML Path Language (XPath) is a type of language for identifying different elements of their values within XML documents. To see how jQuery works with XPath, look following sample. In html document, we have 3 link like this:
We want to give unique style every links. So, add the styles at css, such as:
Then, modify your js like following:
Attribute selectors accept regular-expression-like syntax for identifying the beginning(^), ending($), and asterisk(*) to indicate an arbitrary position within a string. Now, you may get like this:
|
| | Give Your Opinion | Recommend |
|

