I'm using jquery to find and retrieve several img src's from the DOM, however the src's are in relative path format like this:
src="../../../../../dynamic/eshop/product_images/thumbnail_cache/366x366/042-1392_13760000.1.jpg"
I need to remove all the trailing slashes and append an absolute url. Is there anyway to achieve this without using regex in javascript or jquery?
srcto a different URL, or to the same URL, but with an absolute path? Because the current absolute path should be available in thethis.srcproperty of the of the node (which is different to the relative path held in thethis.getAttribute('src')property.this.srcinstead of.attr('src')?