I have a page with some elements that are controlled by the user. One of these is a text input field, where the user is supposed to input a number. Everything works well if
maybe
parseint(ny9000withCommas.replace(/\,/g,""))
lets talk about the restriction :
you can/should allow the user to enter both 9000 & 9,000
you can check validy via REGEX.
in the server side - you should eleminate the commas and treat it as integer.