• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking for a specific value

 
K Robert
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fire the function with the onload event

window.onload = checkSOPassword;

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic