회원가입 input label 문의
안녕하세요
회원가입 input에 text를 넣고싶은데 (첨부사진처럼..)
<label for='reg_mb_id'>아이디</label>
<input class=ed maxlength=20 style="background:#fbfbfb; border:1px solid #dcdde3;" id='reg_mb_id' name="mb_id">
이런식으로 했는데 전혀 먹히지가 않더라구요..
여기저기 검색해보니까 저게 맞는거 같은데
그누보드는 다른가요?ㅠ
회원가입 input에 text를 넣고싶은데 (첨부사진처럼..)
<label for='reg_mb_id'>아이디</label>
<input class=ed maxlength=20 style="background:#fbfbfb; border:1px solid #dcdde3;" id='reg_mb_id' name="mb_id">
이런식으로 했는데 전혀 먹히지가 않더라구요..
여기저기 검색해보니까 저게 맞는거 같은데
그누보드는 다른가요?ㅠ
첨부파일
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
input type="text" 요렇게 넣어주세요
<form name='foutlogin' method='post' onsubmit='return foutlogin_submit(this);' autocomplete='off'>
<fieldset>
<legend>회원로그인 폼</legend>
<label for='ol_id' class='ol_hidden'>아이디</label>
<input type='text' id='ol_id' name='mb_id' class='ol_inp' value="" style='ime-mode:disabled;' />
<label for='ol_pw' class='ol_hidden'>패스워드</label>
<input type='password' id='ol_pw' name='mb_password' class='ol_inp pw' />
<input type='submit' class='ol_submit' value='로그인' />
</fieldset>
</form>
<script>
$(document).ready(function(){
//placeholder 를 배경이미지로 구현 http://touchsoul.tistory.com/12 기본틀 참조하여 수정
//wrest.js : required 에 배경이미지 삽입하는 소스 비활성화 함
$ol_id = $('#ol_id');
$ol_pw = $('#ol_pw');
if ($ol_id.attr('value') == "") $ol_id.addClass('st_id'); //아이디 저장을 안 쓸 때만 백그라운드 사용
$ol_pw.addClass('st_pw');
$ol_id.focus(function() {
$(this).removeClass('st_id');
});
$ol_pw.focus(function() {
$(this).removeClass('st_pw');
});
$ol_id.blur(function() {
$this = $(this);
if($this.attr('id') == "ol_id" && $this.attr('value') == "") $this.addClass('st_id');
});
$ol_pw.blur(function() {
$this = $(this);
if($this.attr('id') == "ol_pw" && $this.attr('value') == "") $this.addClass('st_pw');
});
});
</script>
아이디는 위와 같이 할 수 있습니다
type='password'는 글자 자체가 *** 처럼 안보이게 처리되므로 복잡한 과정이 필요합니다
따라서 이미지로 비밀번호 라는 글자를 만들어서 배경으로 넣는 방법으로..