var statusArray=new Array();
$("#idSelect option").each(function() {
var txt = $(this).text(); //获取option值
if (txt != '') {
statusArray.push(txt); //添加到数组中
}
});
var seltext= $("#idSelect ").combobox('getText');
if (""!==seltext&&-1 == $.inArray(seltext, statusArray)) {
alert("请选择下拉框中的机构!");
return;
}