G 에디트에서 required 무시하고 넘기네요 정보
G 에디트에서 required 무시하고 넘기네요
본문
그냥 submit 넘겨서
임시 방편으로
wr_content 에서 required 를 빼고 (두번 alert 창 나와서)
fwrite_check(f) { 안에
if (!f.wr_content.value) {
alert("내용을 입력해 주세요.");
return;
}
라고 넣었는데 조금 어정쩡해 보이네요
배추님 수정해 주세요
임시 방편으로
wr_content 에서 required 를 빼고 (두번 alert 창 나와서)
fwrite_check(f) { 안에
if (!f.wr_content.value) {
alert("내용을 입력해 주세요.");
return;
}
라고 넣었는데 조금 어정쩡해 보이네요
배추님 수정해 주세요

추천
0
0
댓글 2개

js/wrest.js 파일의 아래 코드를
if (wrestFld != null)
{
alert(wrestMsg);
wrestFld.style.backgroundColor = wrestFldBackColor;
wrestFld.focus();
return false;
}
아래의 코드로 변경하여 사용하시기 바랍니다.
if (wrestFld != null)
{
alert(wrestMsg);
if (wrestFld.style.display != 'none')
{
wrestFld.style.backgroundColor = wrestFldBackColor;
wrestFld.focus();
}
return false;
}
if (wrestFld != null)
{
alert(wrestMsg);
wrestFld.style.backgroundColor = wrestFldBackColor;
wrestFld.focus();
return false;
}
아래의 코드로 변경하여 사용하시기 바랍니다.
if (wrestFld != null)
{
alert(wrestMsg);
if (wrestFld.style.display != 'none')
{
wrestFld.style.backgroundColor = wrestFldBackColor;
wrestFld.focus();
}
return false;
}

잘 되요 =b
