radio selector

jQuery( ":radio" )

체크된 radio value값 가져오기

var val = $(':radio[name="{{name}}"]:checked').val();

radio 값 체크하기

$(':radio[name={{name}}]:input[value={{value}}]').attr("checked", true);

참조

https://api.jquery.com/radio-selector/

+ Recent posts