본문 바로가기

프로그래밍언어/jquery

jquery 라디오버튼 체크 prop

jquery
 $(function(){
      $('#SAMPLE').click(function(){
               $(".radio_class").prop("checked", true)
      })
})
 
html
  <button id="SAMPLE">클릭하세요</button>
   <input type="radio" class="radio_class">