I have link like this: How can I convert that to this.
To all this instead jay-z
it could be anything.
Here is my example code:
$('body a').each(function() {
var link = $(this).attr('href');
if(link.indexOf('/category/music/') >= 0) {
// ...
}
});
So how it can be changed?