This works in IE9 and above and all other browsers.
document.querySelector('input[name="rate"]:checked').value;
More Related Contents:
- How can I know which radio button is selected via jQuery?
- How to get the selected radio button’s value?
- Can you style an html radio button to look like a checkbox?
- In jQuery, how do I select an element by its name attribute?
- Check a radio button with javascript
- jQuery $(“#radioButton”).change(…) not firing during de-selection
- How to make a radio button unchecked by clicking it?
- How to get the value of a selected radio button
- angularjs custom filter to check for values inside a data array
- How to get an element’s padding value using JavaScript?
- Passing parameters to a JQuery function
- Add Whatsapp function to website, like sms, tel
- Connecting to remote SSH server (via Node.js/html5 console)
- Escaping HTML entities in JavaScript string literals within the block
- How to keep elements non-refreshed
- How do you swap DIVs on mouseover (jQuery)?
- JavaScript – Get size in bytes from HTML img src
- Find caret position in textarea in pixels [duplicate]
- Set Caret Position in ‘contenteditable’ div that has children
- jQuery selector to target any class name (of multiple present) starting with a prefix?
- True Isometric Projection with HTML5 Canvas
- Jquery/Javascript Opacity animation with scroll
- How to put a waved line under misspelled words HTML
- How to get a leaflet map canvas to have a 100% height?
- JavaScript EventSource SSE not firing in browser
- Maximum Call Stack Size Exceeded During a setTimeout Call
- Can I save input from form to .txt in HTML, using JAVASCRIPT/jQuery, and then use it?
- Validate Dynamically Added Input fields
- How can I force input to uppercase in an ASP.NET textbox?
- Does jQuery strip some html elements from a string when using .html()?