select option with javascript, example jquery:
$(“option:selected”).attr(“selected”, “selected”);
in DHTMLX how about it?
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
docs.dhtmlx.com/doku.php?id=dhtm … orm_select
I started after selecting the form.
resolved:
form.attachEvent("onChange", function(name, value){
ajax(...) callback:
var options = document.getElementsByTagName('option');
options[result].selected = 'selected';
}
});