I'll probably be laughed at for this attempt of coding, but all I am trying to do is read an input field, remove the "$" and write the new value in a different input field.
Looks simple, and thought this would work, it kindof does, it just does not strip out the dollar sign... Help would be appreciated...g reatly...
Code:
function convert_action (form){
var input1=form.input_field1.value;
var clean=input1.replace(/$/, '');
form.input_field2.value = clean;
}
Comment