Hi,
is there a way to add an unselectable horizontal line in a forms select object??
Hi,
is there a way to add an unselectable horizontal line in a forms select object??
Hi
please try the following
[code]var myForm = new dhtmlXForm(“myForm”, [
{type: “settings”, position: “label-left”, labelWidth: 130, inputWidth: 120},
{type: “select”, name: “test”, label: “Account type”, options: [
{text: “Admin”, value: “admin”},
{text: “Organiser”, value: “org”},
{text: “Power User”, value: “poweruser”},
{text: “User”, value: “user”}
]}
]);
var separator = document.createElement(“OPTGROUP”);
separator.label = “-------------”;
myForm.getSelect(“test”).insertBefore(separator, myForm.getSelect(“test”).childNodes[2]);[/code]