Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the value of an input element
Message
 
To
10/06/2003 11:45:22
Philip Jones
Cornwall County Council
Truro, United Kingdom
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00798429
Message ID:
00798453
Views:
32
>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"

In javascript, "==" was use to compare and "=" was for assignation.
Check for this...

:-)



>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.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform