or
html, body
{
position
:
relative
;
}
function ClientValidate_<%= this.ClientID %>(source, args) {
var combo = $find("<%= ExComboControl.ClientID %>");
if (combo.get_enabled()) {
args.IsValid = false;
var text = combo.get_text();
if (text.length < 1) {
args.IsValid = false;
combo.set_emptyMessage("Please choose an Item");
}
else {
combo.trackChanges();
console.log(text);
var node = combo.findItemByText(text);
console.log(node);
var inputElement = combo.get_inputDomElement();
console.log(inputElement);
if (node) {
args.IsValid = true
args.IsValid = false;
inputElement.style.color = "black";
}
else {
args.IsValid = false;
inputElement.style.color = "#FF0000";
}
}
}
}