127
rated 0 times
[
130]
[
3]
/ answers: 1 / hits: 20749
/ 14 Years ago, wed, january 19, 2011, 12:00:00
In a jQuery script I have the line of code which gets the string of current URL:
var target = $(this).attr('href');
Could the code in this script check if there is a slash at the end of the URL string. If it is present then remove it? What is the way to do it, you could recommend?
More From » jquery