Cordial Greeting.
I tell you what I want to do:
I have an input that captures a value: example: 500,000 I capture that input with Js, and I want to remove the comma to make some calculations.
How can I do it?
var TotalDevengado = $("#TotalDevengado").val();
inicio = ",",
subCadena = TotalDevengado.substring(inicio);
alert(subCadena)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input name="TotalDevengado" value="500,000"/>