jQueriy attribute selectors

Sorry this prolly wont make sense to you, but is mainly for me.

You can use jQuery’s regular expressions to find what you’re looking for in a string.

^ = identify the value at the beginning
$ = identify the value at the end
* = identify the value at an arbitrary position.

This is useful for finding stuff such as href’s that have ‘mailtos’ etc. so you can .addClass of ‘.email-icon’ or whatever.

This entry was posted in jQuery and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>