var obj = document.getElementById(id)
var sel = document.createElement("select");
sel.id = selid;
- sel.className = 'cbi-input-select';
+ sel.className = obj.className.replace(/cbi-input-text/, 'cbi-input-select');
if (obj.nextSibling) {
obj.parentNode.insertBefore(sel, obj.nextSibling);
//Do nothing
}
})
+
+ // Retrigger validation in select
+ sel.focus();
+ sel.blur();
}
function cbi_combobox_init(id, values, def, man) {
-%>
}, '<%- if not self.rmempty and not self.optional then -%>
<%-: -- Please choose -- -%>
+ <%- elseif self.placeholder then -%>
+ <%-= pcdata(self.placeholder) -%>
<%- end -%>', '
<%- if self.combobox_manual then -%>
<%-=self.combobox_manual-%>