get element by input type radio code example Example: document get element by id radio button var selectedOption = $("input:radio[name=option]:checked").val()