Hello all! I have a web form where users will be able to type in a text box, text they would like to purchase as seen here.
I have it set up so that the form automatically updates another form field by counting the characters typed. I'm using this code:
Now obviously I don't want to charge someone for the space in between the name, can anyone tell me how to either disable the space bar or better yet not count it after it's typed?
Thanks in advance!
I have it set up so that the form automatically updates another form field by counting the characters typed. I'm using this code:
Code:
<input type='text' name='custom_text' onKeyDown="textCounter(this.form.custom_text,this.form.wpsc_quantity_update,100)" onKeyUp="textCounter(this.form.custom_text,this.form.wpsc_quantity_update,100,nospaces(this)" id='custom_text' />
Thanks in advance!
Comment