나는 아무것도하지 않으려 고합니다 ... 특정 체크 박스 상태가 변경 될 때 "noshowuntilchangevelocity"클래스의 내용이 표시되거나 숨겨지기를 원합니다. 당신은 여기입니다 id="noshowuntilchangevelocity"
및 style="display:none;"
당신은 display:none;
를 사용할 필요가 체크 상자 상태 변경시 텍스트 토글
display:hidden;
사이에 공백을 추가 할 필요가
- :
$(document).ready(function() { $("input#velocity").change(function() { $('#noshowuntilchangevelocity').toggle(); }); }); <input id="velocity" name="velocity" type="checkbox"value="Y" checked> <div id="noshowuntilchangevelocity"style="display: hidden;"> <p class="bolder">You are changing this selection</p> </div>
JsFiddle 링크를 추가하고 질문하기. –
jQuery의 버전은 무엇입니까? – hjpotter92
그것이 그대로 작동하고 있습니다. http://jsfiddle.net/ZJmw3/ – hjpotter92