I am trying to change a jQuery variable for example. /images/tree.jpg images / tree.jpg (without the first slash, so this should be a relative path instead of an absolute one).
I get the url like this: var href = jQuery ("img.thumbnail"). attr ("href");
Now I need this URL elsewhere, but without the first char.
Is there an easy way to do this? Thank!!
source
share