General information
Title:
Changing the value of an input element
Hi,
I've got a form with a load of checkboxes on it and I want to submit a value which will depend on the selections made in the checkboxes.
I've written a javascript function to change the value of a hidden input box. The value of that input box will be submitted.
Trouble is it's always undefined.
In my javascript function I've got
document.nameofdocument.nameofinputbox.value=="3"
If I do
alert(document.nameofdocument.nameofinputbox.value) from within the function it gives a message saying 3.
But when I submit the form the value is undefined.
Has anyone got any idea what is going wrong here please?
Phil.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only