Results 1 to 3 of 3
Threaded View
-
05-09-2005, 09:26 PM #1Web Hosting Master
- Join Date
- Jun 2004
- Location
- Bay Area -USA
- Posts
- 1,740
Changing the value of a hidden Form value...
Hey I have to change the value of a hidden form element when a user selects a different radio button. Here is my code:
PHP Code:<script language='JavaScript'>
function UpdateForm() {
window.Signup.encrypted.value = 'New_value_here';
}
</script>
PHP Code:<input type="radio" name="package_type" value="gold" onChange="UpdateForm();">
<input type="radio" name="package_type" value="silver" onChange="UpdateForm();">
<input type="hidden" name="encrypted" value="first_value">
It doesnt<<< Please see Forum Guidelines for signature setup. >>>