selected option dhtmlxForm

select option with javascript, example jquery:
$(“option:selected”).attr(“selected”, “selected”);

in DHTMLX how about it?

Do you want to selec it on init or by some action?

If on init - just set the attribute:
selected=true … orm_select

I started after selecting the form.


form.attachEvent("onChange", function(name, value){
ajax(...) callback:
var options = document.getElementsByTagName('option');
options[result].selected = 'selected';