편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
32번째 줄: | 32번째 줄: | ||
==jQuery== | ==jQuery== | ||
{{참고|jQuery 라디오 버튼}} | {{참고|jQuery 라디오 버튼}} | ||
<syntaxhighlight lang=' | <syntaxhighlight lang='html5'> | ||
<script src="//code.jquery.com/jquery.min.js"></script> | <script src="//code.jquery.com/jquery.min.js"></script> | ||
<script> | <script> | ||
$(function() { | $(function() { | ||
$("#btn-show-checked").click(function() { | $("#btn-show-checked").click(function() { | ||
alert( $("input[name=fruit]:checked").val() ); | |||
}); | }); | ||
}); | }); | ||
47번째 줄: | 47번째 줄: | ||
<button id='btn-show-checked'>선택된 항목 확인</button> | <button id='btn-show-checked'>선택된 항목 확인</button> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<jsfiddle>vLyjbk0y</jsfiddle> | |||
==PHP== | ==PHP== |