DenisKarakchiev
9/5/2017 - 8:25 AM

get checked elements from html #js

get checked elements from html #js

function getModernCheckedByName(name){
    return  Array.prototype.slice.call(document.getElementsByName(name)).filter(function(elem){
        return elem.checked;
    });
}