input 에서 require 와 itemname 대체할 표준코드는 뭘까요? > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

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='' />

이렇게 표준이 아니라고 합니다...
대체할 표준 코드는 없는 걸까요?

댓글 전체

힌트감사합니다.  효과적으로 해결했습니다.

해피정이 선택한 방법

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="검색어" />  이렇게 수정
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT