Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by arup on Nov 26, 2008 21:06
open dhtmlx forum
combobox

how to post select text from combobox to javascript variable while submit form
Answer posted by Support on Nov 27, 2008 02:41
In order to get the value of selected option you can use the following method:

var sel_val = combo.getActualValue();

If you use submit input, this method can be called, for example, when onclick event occurs, or from onsubmit event of form.

Technically , when combo created inside form - its value will be included in form submit automatically.