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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp and javascript.

Status
Not open for further replies.

mickywall

Programmer
Sep 2, 2002
88
0
0
GB
I am trying to use ASP and javascript.

through an admin area the user will be able to set what fields need to be displayed for a membership joinup form.
If the fields are set to 'y' then that particular field will be displayed. The issue is how do i dynamically validate that field with javascript ?

At the moment i can display the textfields, though the issue arises from the javascript validate function that occurs on form submission. I have validation occuring for all the textfields, and the problem is that as some of these arent neccessarily in the form , i want the validation to only be applicable if that textfield is active.

hope you can help.
m.
 
sure:
[tt]
if (document.formName.fieldName) {
// field exists - do validation
}[/tt]
=========================================================
while (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top