I would like to ask how to replace char "(" and ")" with ""
this is because I can replace either (or) with "" instead of both
how to achieve the goal?
i.e
original: (abc, def)
changed: abc, def
thank
my code is:
<html>
<body>
<script type="text/javascript">
var str="(abc, def)";
document.write(str.replace("(",""));
</script>
</body>
</html>
source
share