This works with any explorer.
document.querySelector('input[name="genderS"]:checked').value;
This is a simple way to get the value of any input type.
You also do not need to include jQuery path.
More Related Contents:
- How can I know which radio button is selected via jQuery?
- How to get value of selected radio button?
- 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
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- How to force browser to show image 3 inches wide?
- HTML Form Submit pass array to PHP [closed]
- Detect which word has been clicked on within a text
- How do I detect keypresses in Javascript?
- How to download a file without using element with download attribute or a server?
- Open window in JavaScript with HTML inserted
- Detecting that the browser has no mouse and is touch-only
- Javascript regex returning true.. then false.. then true.. etc [duplicate]
- How Do I Stop My Web Content From Shifting Left When The Vertical Scrollbar Appears? Roll-Up of Advice 2017 [duplicate]
- How to detect when history.pushState and history.replaceState are used? [duplicate]
- How to prevent html/JavaScript code modification
- Multiple read more / read less sections are not working on a page
- Drawing lines on html page
- Measuring text width/height without rendering
- Sending mail from HTML page with image in the body
- Wrapping lists into columns
- Close a SELECT dropdown list programmatically with Javascript/jQuery
- contenteditable div backspace and deleting text node problems
- Removing backslashes from strings in javascript
- HTML5 Notification not working in Mobile Chrome
- Possible to reverse a css animation on class removal?