- /**
- * 文本框非空验证
- * @param type 自定义类型(.或#)
- * @param name 页面中自定义类型名称
- * @author 冯刚 2019年6月12日
- */
- function isNotNull(type, name) {
- var temp, select;
- var isNull = false;
- if (checkValue(type, name))
- isNull = true;
- temp = type + name;
- if (!isNull)
- $($(temp)).each(function () {
- var _this = $(this);
- _this = reductionStyle(_this);
- temp = _this.children('input').val();
- select = _this.children('div').children('input').val();
- if (temp === '' || temp === null) {
- isNull = true;
- _this.children('input').css('border', 'solid red 1px');
- }
- if (select === '' || select === null) {
- isNull = true;
- _this.children('div').children('input').css('border', 'solid red 1px');
- }
- });
- return isNull;
- }