I am trying to remove the last character from a div id using jquery. Currently I have;
<div id="foo/"></div>
But I need ;
<div id="foo"></div>
The character is always a '/' and is generated automatically (re:annoyingly) by the cms I am using, having the '/' there is messing up some javascript linking I am trying to do.
Any help on how to remove or resolve this would be massively appreciated!
Thanks in advance