this number is store in a text.text or variable
12
how can i replace or delete the number 5
like if 12 contain 5
delete 5
= 12
example of the code is here
http://www.w3schools.com/jsref/tryit.as ... f_replace2
<!DOCTYPE html>
<html>
<body>
<p>Click the button to replace "blue" with "red" in the paragraph below:</p>
<p id="demo">12</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var str = document.getElementById("demo").innerHTML;
var res = str.replace(/5/g, "");
document.getElementById("demo").innerHTML = res;
}
</script>
</body>
</html>