2018년 8월 14일 화요일
JavaScript - $.each (일괄 체크)
var checkLength = {
Ven_ID : "공급사코드",
Ven_UID : "공급사아이디",
Ven_Name : "공급사명",
Ven_Delv_Set : "최소발주금액",
Ven_Delv_Price : "배송비용",
Ven_Zip1 : "주소",
Ven_Zip2 : "주소",
Ven_Addr1 : "주소",
Ven_Addr2 : "주소",
Ven_Tel : "전화번호",
Ven_Fax : "팩스번호",
Ven_Email : "이메일",
Ven_Clerk : "담당자명",
Ven_Chief : "대표자명",
Ven_Biz_Num : "사업자등록번호",
htel2 : "핸드폰번호",
htel3 : "핸드폰번호"
};
var rtnFunc = false;
$.each(checkLength, function(index, value){
var ctrl = $("input:text[name='" + index + "']");
if (alltrim(ctrl.val()).length == 0) {
alert(value + "을(를) 정확히 입력해 주십시오.");
ctrl.focus();
rtnFunc = true;
return false;
}
});
if (rtnFunc) {
return;
}
피드 구독하기:
댓글 (Atom)
MSSQL - Cursor vs Temp Table
#테이블 변수사용의 예 use pubs go declare @tmptable table ( nid int identity(1,1) not null, title varchar (80) not null ) -- 테이블 변수 선언 inse...
-
11 SQL Client for Productive Database Administration & Development Working as a web developer or database administrator, often n...
-
[JSON Serialization] JSON Serialization The JSON Serialization feature converts objects to and from JSON format. This can be use...
댓글 없음:
댓글 쓰기