[HTML] label for

동민·2021년 8월 23일
0

위 이미지처럼 label 영역(빨간색 박스 영역)을 눌렀을 때도 라디오 박스가 클릭되도록 하려면 input 태그에 id를 붙여주고 label 태그에 for 처리해주면 된다.

<input type="radio" class="OOO" id="[아이디]">
<label for="[아이디]">
	...
</label>

예시

<input type="radio" class="OOO" id="jibun{{ calc MODEL_NUM '+' 1 }}">
<label for="jibun{{ calc MODEL_NUM '+' 1 }}">
	<span class="AAA">{{ZIPNO}}</span>
	<span class="BBB">{{JIBUN_ADDR}}</span>
</label>
profile
BE Developer

0개의 댓글