In IE9+, Chrome or Firefox you can do:
var checkedBoxes = document.querySelectorAll('input[name=mycheckboxes]:checked');
More Related Contents:
- How to send data to the server via Ajax?
- Making a quiz in HTML and Javascript [closed]
- How to find certain text in HTML
- javascript function doesn’t work when link is clicked
- How to save an image to localStorage and display it on the next page?
- Is it wrong to place the tag after the tag?
- How to add line breaks to an HTML textarea
- Using an HTML button to call a JavaScript function
- Get the position of a div/span tag
- How to make ng-bind-html compile angularjs code
- TinyMCE Paste As Plain Text
- HTML5 FileReader how to return result?
- How do image preloaders work?
- Load HTML page dynamically into div with jQuery
- D3 Bar Graph example not working locally
- jQuery position DIV fixed at top on scroll
- Can I just make up attributes on my HTML tags?
- JavaScript window.location does not set referer in the request header
- How to embed a PDF in HTML page?
- Change tag using javascript [duplicate]
- Why does querySelector only select the first element and how can I fix this?
- How can I set preview of video file, selecting from input type=’file’
- The data-toggle attributes in Twitter Bootstrap
- How to remove jQuery Mobile styling?
- minimise the code since I am using the same code only the content in p tags changes and component AccordionHeader header changes
- Copy/Paste from Excel to a web page
- onclick event function in JavaScript
- Cross-Origin resource sharing and file://
- Hot to get incomplete datetime-local input values
- Content of html page changed by jQuery but “View Source” don’t reflect the changes