my first post on here, wondering if anyone has a solution to a problem I am having.
I have a dynamic asp page created through an access db, which all works fine. I output several text boxes which are dynamically named depending on the db fields.
The problem I am having is, I am using the onChange event to calculate a value within the text boxes and Im not sure if it is possible to do this, but can you extract a value from a text box and use it in a sub if you do not know the name value of the text field??
Example Code is something along the line of this:-
<script language=vbscript> sub calcualte() dim sCode sCode = document.QuoteDetails.elements.value 'This is the problem, how do I extract the value from the text box if I do not know the name of the field??? end sub </script>
I can get the value to return if I was to individually name each text box, but as they are dynamically named due to user manipulation, it would be a real mindfield.