I have an input
field that looks like this.
<input id="test" value="150,000">
My goal is to extract the value
from this input
and perform calculations with it.
Is there a way to convert value="150,000"
into a number without the comma, such as 150000?
I attempted to use
numberFormat($("input[id='test']").val())
but it did not work as expected.