I’m trying to replace character in url using jquery.
Here’s what i’ve tried so far.
var s = $(‘.breadWhole a:nth-of-type(3)’).attr( ‘href’ );
So i take the link it is something like http://example.com//test
I need to remove second // from the url and make it with one /.