• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validation for the fileds whose names are dynamically generated.

 
lusha tak
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is related to the javascript validation for the fileds whose names are dynamically generated.
I have used the jsp file.From the database I m retreiving the rows & displaying it in table format in the JSP page for modification .As the no of rows cannot be fixed & each modified field need to be captured ,the name of the input types(HTML) has to be dynamically generated.But now the problem is that if somebody modifies any of the fields in any of the rows then for apllying validation at the form level what should one do. The name of the rows are dynamically generated.How to apply validation at the front end?
Thanx in advance.
Lusha
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would use client-side JavaScript to loop through the fields in the forms collection. Use the for...in construct.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic