i need help in this:i want to remove from a string a specific value. for example i have this code:
document.getElementById("sub_subject_temp"+id1).value = old_sub_subject_string.replace(/theVal/,"");
if my string is:
6-7,6-3,6-1,
and i want to remove:
6-3,
it would look like this: 6-7,6-1, i have tryed the
str.replace(/val/, "");
but it return 6, any idea to do this thing?