라디오버튼을 이용한 div 보이기
Jquery 버전 <form id=’form-id’> <input id=’watch-me’ name=’test’ type=’radio’ value=”a” />Show Div <br /> <input name=’test’ type=’radio’ value=”b” /> <br /> <input name=’test’ type=’radio’ value=”c” /> </form> <div id=’show-me’ style=’display:none’>Hello</div> <script type=’text/javascript’> $(“input[name=’test’]”).click(function () { $(‘#show-me’).css(‘display’, ($(this).val() === ‘a’) ? ‘block’:’none’); }); </script> <script src=”//code.jquery.com/jquery-1.12.4.min.js” integrity=”sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=” crossorigin=”anonymous”></script> Show Div Hello 혹은 원시적으로 ….. 근데 이건…