|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Textbox that auto-submits?
I have a textbox on a page. It is used to type in a 10 digit part number. Is there any way that the page can automatically submit immediatly after the 10th character is typed?
I'm not totally sure if JS is the correct language for this operation. |
|
#2
|
||||
|
||||
|
Here's a test.
Code:
<form action="http://www.google.com/search">
<input type="text" name="q" onkeyup="if(this.value.length==10){alert('yes!');this.form. submit();}" />
</form>
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Textbox that auto-submits? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|