I have a form that has some fields that are being dynamically generated through javascript. This form goes through a validation process and I want to make sure that the fields that are generated dynamically are actually being filled in. The problecm is, it doesn't appear to be able to do that.(
Look at my code behind the cut )
Comments 1
1. Use document.SLA.SLAWksHostNew, not document.SLA ["SLAWksHostNew"]
2. Don't use indexes in a name. "ABC[0]" can never be accessed through javascript because the script interprets it as a 3 character name with index but the engine treats it as a 6 character name. Call them all ABC, then document.form.ABC will return an array.
3. Don't ask for help with "this doesn't work [as expected]". If you had said what it was doing, I could have found the problem without copying running the code which I don't normally bother doing.
Reply
Leave a comment