본문 바로가기

[Study & Job]/[Web Dev & Pentesting]

checkbox와 라벨[펌]

<input type="checkbox" id="merong" /> 
<label for="merong" style="width:71px;height:28px;background:url(http://www.harogi.net/img9/day_top_02_o.jpg)"></label> 


<input type="checkbox" /><img src='http://www.harogi.net/img9/day_top_02_o.jpg' onclick='previousSibling.checked=previousSibling.checked!=true?true:false;'/> 


=============================================

<input type="radio" name="mw" id="man"/><label for="man"> 남자 </label>
<input type="radio" name="mw" id="woman" /><label for="woman">여자</label>
반응형