Thursday, 25 October 2012

jquery select element by the href link

I use this quite often. how to select an link element using the href link:

http://stackoverflow.com/questions/303956/jquery-select-a-which-href-contains-some-string

$('a[href$="ABC"]')...

Yap that's it.

0 comments:

Post a Comment