답변 3개
채택된 답변
+20 포인트
그누보드는 가입버튼을 눌렀을 때 폼체크를 하면서 아이디 중복검사를 합니다.
register_form.skin.php 에 아이디 옆에 버튼을 추가해 준뒤 아래처럼 코드를 추가해 주시면 버튼 클릭시 아이디를 체크합니다.
Copy
<button id='id-chk'>아이디 체크</button>
<script>
$(document).ready(function () {
$('#id-chk').on('click', function () {
const msg = reg_mb_id_check();
if (msg) {
alert(msg);
$("#reg_mb_id").focus();
}
});
});
</script>
답변을 작성하려면 로그인이 필요합니다.