Need help with javascript

Oct 21, 2010 16:00

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 )

Leave a comment

Comments 1

immortalsofar October 23 2010, 15:23:06 UTC
Two things. (3, actually)
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

Up