JamesManke
Programmer
After using javascript to change the value of a field without refreshing the page is it possible to store the changed value information into a CF variable?
Thanks
Heres what I got so far...
<script language=javascript>
function changeColor(newColor) {
document.getElementById("color_change").innerHTML = newColor;
}
</script>
<table>
<tr>
<td name="color_change" id="color_change">
<!---This is the information I want to store in a variable--->
Show Color Name Here</td>
</tr>
<tr>
<td>
<select name="colors" onchange='changeColor(this.value)'>
<option value="Red">Red</option>
<option value="Green">Green</option>
<option value="Blue">Blue</option>
</select>
</td>
</tr>
</table>
<!---Storing text field 'color_change' to variable--->
<CFSET variables.current_color = ????>
Thanks
Heres what I got so far...
<script language=javascript>
function changeColor(newColor) {
document.getElementById("color_change").innerHTML = newColor;
}
</script>
<table>
<tr>
<td name="color_change" id="color_change">
<!---This is the information I want to store in a variable--->
Show Color Name Here</td>
</tr>
<tr>
<td>
<select name="colors" onchange='changeColor(this.value)'>
<option value="Red">Red</option>
<option value="Green">Green</option>
<option value="Blue">Blue</option>
</select>
</td>
</tr>
</table>
<!---Storing text field 'color_change' to variable--->
<CFSET variables.current_color = ????>