Is there a simple way to get the parameters at the end of an href attribute of a clicked link using the click event object?
I have some jQuery code that looks like this:
Yes, you can use the .search property of the link...
.search
alert( this.search );
DEMO: http://jsfiddle.net/sHqmF/
To get rid of the ?, just .slice() it...
?
.slice()
this.search.slice(1)
DEMO: http://jsfiddle.net/sHqmF/1/