- required 검사 기능 추가
This commit is contained in:
@@ -103,6 +103,14 @@
|
|||||||
init(key, detail);
|
init(key, detail);
|
||||||
|
|
||||||
$("#btn_modify").click(function () {
|
$("#btn_modify").click(function () {
|
||||||
|
// 필수값 체크
|
||||||
|
var form = $('#ajaxForm')[0];
|
||||||
|
|
||||||
|
if (form.checkValidity() === false) {
|
||||||
|
form.reportValidity();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var postData = $('#ajaxForm').serializeArray();
|
var postData = $('#ajaxForm').serializeArray();
|
||||||
if (isDetail) {
|
if (isDetail) {
|
||||||
postData.push({
|
postData.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user