<input type="number" id="fname" name="fname">
<input type="submit" onclick="fun()" value="Submit">
function fun(){
var x= document.getElementById("fname").value;}
How to strip coma from it before any process start. Help. It show Zero only nothing that is good.
Code Updated with full detail.
Problem for me is number type for coma , not doing any favor.
Other option look use type=text in HTML. Problem with me to import from HTML to java-script. and value
https://codepen.io/puneetxp/pen/PoPMXEQ
Thanks guys for fast help.
I Found the Solution threw hint.
<input type="text" id="fname" name="fname">
var x= document.getElementById("fname").value.replace(/,/g, '');
Turn Out the Type number can't handle , (comas). But still anybody know it can work with number then let me know.