PDA

View Full Version : Auto Form Submit with Characters



Onyxyl
Jun 9th, 2006, 06:22 AM
I was wondering if anybody had any code for a script that would automatically submit the form after a designated amount of letters and/or numbers was entered into a text box?

Thanks

Kravvitz
Jun 9th, 2006, 07:00 AM
Why do you want to do that?

Onyxyl
Jun 10th, 2006, 04:52 AM
I want to setup a script that works with a bar code reader. once an item is scanned, i want the form to automatically submit.

Kravvitz
Jun 10th, 2006, 04:58 AM
You could try something like

onkeyup="if(this.length==20)this.form.submit()"