input 에서 require 와 itemname 대체할 표준코드는 뭘까요? 정보
input 에서 require 와 itemname 대체할 표준코드는 뭘까요?
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
http://validator.w3.org/check?uri=http%3A%2F%2Fhappyjung.com%2Fgnuboard%2Fbbs%2Fboard.php%3Fbo_table%3Dnotice&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654
<input name="stx" class="stx" style="width:100px;" maxlength="15" itemname="검색어" required value='<?=$stx?>' /> 이부분을 W3C 에서 xhtml 적합성 검사를 하면
Line 596, Column 84: Attribute "itemname" is not a valid attribute
…dth:100px;" maxlength="15" itemname="검색어" required value='' />
Line 596, Column 99: "required" is not a member of a group specified for any attribute
…length="15" itemname="검색어" required value='' />
이렇게 표준이 아니라고 합니다...
대체할 표준 코드는 없는 걸까요?
오류 주소 :
http://validator.w3.org/check?uri=http%3A%2F%2Fhappyjung.com%2Fgnuboard%2Fbbs%2Fboard.php%3Fbo_table%3Dnotice&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654
<input name="stx" class="stx" style="width:100px;" maxlength="15" itemname="검색어" required value='<?=$stx?>' /> 이부분을 W3C 에서 xhtml 적합성 검사를 하면
Line 596, Column 84: Attribute "itemname" is not a valid attribute
…dth:100px;" maxlength="15" itemname="검색어" required value='' />
Line 596, Column 99: "required" is not a member of a group specified for any attribute
…length="15" itemname="검색어" required value='' />
이렇게 표준이 아니라고 합니다...
대체할 표준 코드는 없는 걸까요?
댓글 전체

jquery를 고려해 보세요.

아.. jquery 라... 다시 학습모드로 돌입해야하는건가요.. 아.....

힌트감사합니다. 효과적으로 해결했습니다.
해피정이 선택한 방법
1. http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=18794 에 첨부된 파일을 js 폴더에 업로드
2. 그누보드/head.sub.php 에 아래 코드 추가
<script type="text/javascript" src="<?=$g4['path']?>/js/validate.js"></script>
3. required 적용할 곳의 form 을 아래와 같이 수정
<form ... name="fsearch"> 를
<form ... name="fsearch" onsubmit="return validate_form(this);"> 이렇게 수정
4. input 문을 아래와 같이 수정
<input name="stx" class="stx" ... itemname="검색어" required /> 를
<input name="stx" class="required stx" ... title="검색어" /> 이렇게 수정
해피정이 선택한 방법
1. http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=18794 에 첨부된 파일을 js 폴더에 업로드
2. 그누보드/head.sub.php 에 아래 코드 추가
<script type="text/javascript" src="<?=$g4['path']?>/js/validate.js"></script>
3. required 적용할 곳의 form 을 아래와 같이 수정
<form ... name="fsearch"> 를
<form ... name="fsearch" onsubmit="return validate_form(this);"> 이렇게 수정
4. input 문을 아래와 같이 수정
<input name="stx" class="stx" ... itemname="검색어" required /> 를
<input name="stx" class="required stx" ... title="검색어" /> 이렇게 수정