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