radio button value 값 넣고 클릭 금지

HSGemini·2022년 7월 21일
0

radio button 에 disabled =disabled 넣으면 버튼이 클릭이 안된다.
하지만 비활성화되는 것이므로 form으로 값이 안넘겨짐

->readonly 사용
radio는 사용불가

-> 클릭시에 클릭안되는 자바스크립트 작성

$('input[name=radioBox]').click(function (event){       event.preventDefault();       event.stopPropagation();});
출처: https://gocoder.tistory.com/2317 [고코더 IT Express:티스토리]

https://gocoder.tistory.com/2317

profile
공부중

0개의 댓글