So I have this string var total_res = R4-4R4-5; and I want to replace R4-5 substring with "",but I have tried this code so far and it doesn't work:
Javascript:
<script>
$(document).ready(function(){
ss = "R4-5";
lool = total_res.replace(ss,"");
alert(lool);//it alerts the same original string
});
</script>
What is wrong? Thank you for your help.