I'm new to JS and I'm playing a bit around Here is what I have at the moment
jQuery("td.ninja_column_0.ninja_clmn_nm_film.footable-first-visible a").each(function(){
var newUrl = jQuery(this).attr('href').split(' ').join('_');
jQuery(this).attr("href", newUrl);
});
So here every space in my URL gets replaced with an _ No I also have äöü or ß that needs to be replaced by something. I could simply copy the code above x time under the other, that works, but I think there is a better way and I think someone here can help me.
By the way I first used
var newUrl = jQuery(this).attr('href').replace(' ', '_');
But this just replaced once my space
Already thanks for any ideas :)