글자수 체크하기
컨텐츠 정보
- 20,780 조회
- 8 추천
- 목록
본문
<form name='form'>
<b>글자: </b><input type='text' name='t1' onKeyUp='char_count(this.form)'>
<br><b>글자수: </b><input type='text' name='t2' value='0' readonly="readonly">
</form>
<script language='javascript'>
function char_count(form)
{
form.t2.value=form.t1.value.length;
}
</script>
<b>글자: </b><input type='text' name='t1' onKeyUp='char_count(this.form)'>
<br><b>글자수: </b><input type='text' name='t2' value='0' readonly="readonly">
</form>
<script language='javascript'>
function char_count(form)
{
form.t2.value=form.t1.value.length;
}
</script>
관련자료
댓글 0
등록된 댓글이 없습니다.