This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Checking for a specific value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Checking for a specific value" Watch "Checking for a specific value" New topic
Author

Checking for a specific value

K Robert
Ranch Hand

Joined: May 16, 2003
Posts: 116
I have this code:


which I have have in an onchange event. I want it to enable a submit button as soon as "TEST" is typed in and I need the submit to remain enabled if "TEST" is in the text box when returning to the page. How do I do this.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
fire the function with the onload event

window.onload = checkSOPassword;

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: Checking for a specific value
 
Similar Threads
JavaScript form submit fails in IE7, works in FF and Safari
Anybody using developing their project and adding UNIT Tests?
Class Diagram ,Test Class and Unix Testing
Javascript to reach inside a servlet...
Form submitting