jQuery select last word after = (equal symbol)
Posted
by Jonathan
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan
Published on 2010-06-05T19:18:37Z
Indexed on
2010/06/05
19:22 UTC
Read the original article
Hit count: 123
jQuery
|jquery-selectors
I'm using $(this).attr("href");
to select the href attribute value of the clicked element, but I need to select only the part after the last '=' symbol.
Example:
href="index.php?con=123&id=123&sel=heyhey"
I only need the last part of the href that is 'heyhey'
How can I select this??
© Stack Overflow or respective owner