|Java Script & FEListBoxes
||Wed, 04 October 2006 01:47
Registered: September 2006
Location: Sri Lanka
I have a text field which hold the user input ; lets say the label is length... Besides the form contains a dropdown which provides options of the measurements to the user. Drop down values are "Metres" and "Feet". According to the options selected the text box values get changed appropriately.
for that I came up with a java script which should have been used at the OnChange event of the FEListBox.
var height=document.getElementById("Release Height").value;
var option=document.getElementById("Height Measure").value;
if(option == "Metres")
else if(option == "Feet/Inches")
The strings "Release Height", "Height Measure" are names of the FEListBoxes used in the form.
But I encountered that this does not do any change to the form. Can anyone give me a detailed solution?