제목과 내용 필수 입력 처리

dev_bert
kyebyungha 3 years ago
parent c7a15a51a1
commit 6582fe0fba

@ -269,6 +269,16 @@
$('#frmInsert').children('#pick_img_index').val(pick_img_index); $('#frmInsert').children('#pick_img_index').val(pick_img_index);
if($("#title").val() =="") {
alert("제목을 입력하세요!");
$("#title").focus();
return;
}
if($("#content").val() =="") {
alert("내용을 입력하세요!");
$("#content").focus();
return;
}
var tag_params = ''; var tag_params = '';
$('#array_tag span.tag').each(function( index ) { $('#array_tag span.tag').each(function( index ) {
tag_params += $( this ).text() + ','; tag_params += $( this ).text() + ',';

Loading…
Cancel
Save