日期:2014-05-16 浏览次数:20350 次
$.extend($.fn.validatebox.defaults.rules, {
equals1: {
validator: function (value, param) {
if (value == "" || value == "0")
return false;
return true;
},
message: 'Field do not match.'
}
});
<select id="Citys" name="CityID" class="easyui-combobox" style="width: 120px;"
data-options="url:'../Ajax/GetCitys?ProvincesID=0',valueField:'id',textField:'text',editable:false,validType:'equals1[0]'">
</select>