<input id="secure0" name="secure" fw-filter="isFill" fw-label="비밀글설정" fw-msg="" value="F" type="radio" checked="checked">
<label for="secure0">공개글</label>
<input id="secure1" name="secure" fw-filter="isFill" fw-label="비밀글설정" fw-msg="" value="T" type="radio">
<label for="secure1">비밀글</label>
checked="checked" 이부분을 두번째 input 자리에 넣고 싶습니다 html에서 바꾸지 않고 js로 바꾸는 법 있을까요? 참고로 순수자바스크립트 말고 제이쿼리 코드로 바꿀 수 있는 방법을 원합니다 !
|
답변 1개
채택된 답변
+20 포인트
3년 전
$('#secure1').prop('checked', true);
하시면 됩니다~
답변을 작성하려면 로그인이 필요합니다.