I'm working on a web page which has some form elements in it which I need to
manipulate using JavaScript.
If the element is (for example, in a form called TicketForm)
<INPUT name="intNumTickets" onBlur="calcPrice();" value="0">
I can read and manipulate this value in CalcPrice using the format
document.TicketForm.intNumTickets
My problem is, this form needs to pass the values to a payment processor,
and they say that the name needs to be preceded with the text 'PT' so that
it is passed back to the form later without any processing (no, I cannot
change this aspect).
So the input statement would be
<INPUT name="PT intNumTickets" onBlur="calcPrice();" value="0">
....but my problem is, how do I reference PT intNumTickets using the document
format?
document.TicketForm.PT intNumTickets
won't work.
Any ideas how I can handle this?
Regards,
Pete.