Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cindhu on Aug 05, 2009 17:28
open dhtmlx forum
How avoid passing default values to server in dhtmlxcombo

Default values are passed to server side even though I keep dhtmlxcombo blank using setComboText. How to avoid this?How to set default values to blank. This happens even if I don't select anything from the list or key anthing in combo box.
Also I want to know how to set default value. Is there any method for this?
Values should be passed to server side only when I select anything from the list or if I key anything in combo box. I am working on struts jsp pages. I am using only java script and not XML.


Thanks in advance and thanks for your earlier reply.
Answer posted by Alex (support) on Aug 06, 2009 01:32

setComboText doesn't change the hidden values. 

Try to use setComboValue instead:

combo.setComboValue("");