Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple question

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
I have a text box called password I want to validate that it has been filled in and if it hasnt pop up a screen telling them they need to enter it
..


Help please
 
<script language=JavaScript>

function valForm {

if textbox <> &quot;&quot; {
alert&quot;password must be supplied&quot;
}
}
</script>

then in your input

<input type=&quot;submit&quot; onclick valForm()>

or along those lines anyway Live long and make your kids suffer..
 
Thanks I do have another question which you may or may not be able to answer

I have a select box called &quot;Ver&quot; with two itmes in it Ver1 and Ver2

And I have another select box called &quot;pic&quot; with about 100 items in it..

Is it easy to lets say if a user selects Ver1 from &quot;ver&quot; then it only shows some of the items in the next box called &quot;pic&quot; and when they select ver2 it shows a different set of items in &quot;pic&quot;

I think this is done with array but can you have values in arrays if so how?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top