I have an HTML input element and I\'m trying to force a single decimal place into the input after the user changes the value. So, let\'s say the user enters \"4\", I run th
convert to a Number first,
this.value = Number(this.value).toFixed(1);
this.value is a String, and a string does not have the toFixed method.
this.value
toFixed