Hello,
I have a Drop Down (z_prefix) that contains a list of values that the user selects from. The section is then used as a prefix for a manually entered description in a text box (z_description).
using this returns the previously selected value in the drop down, not the currently selected one:
var pre = getFieldByName("z_prefix").getElementsByTagName("input")[0].value;
this has the same issue:
var select = getElementById("z_prefix");
var pre = select.options[select.selectedIndex].text;
Whats the syntax for the currently entered one?