I would like to remove some text which says text with this code:
$(".jq-text li a").html(function(i, h){
return h.replace(/text/, "");
});
It works good, as expected. The problem is that I would like to remove the text http:// instead, so I tried:
$(".jq-text li a").html(function(i, h){
return h.replace(/http:///, "");
});
This is giving me an error in dreamweaver…How should I write this?
You have to escape the forward slashes in your regular expression: