Get the values selected by checked under different div

there are checked, under several different div to get the selected values and put them in different arrays
<div class="content">
    <div class="selectContent1">
        <input type="checkbox" value="100" name="option" class="selectName">oppo
        <input type="checkbox" value="200" name="option" class="selectName">
         <input type="checkbox" value="300" name="option" class="selectName">
    </div>
    <div class="selectContent2">
        <input type="checkbox" value="1" name="option" class="selectName">iOS
        <input type="checkbox" value="2" name="option" class="selectName">Android
        <input type="checkbox" value="3" name="option" class="selectName">
    </div>
</div>
  1. Select all in the first div, then get the value of [100200300]
  2. if ios and android, are selected in the second div, the value obtained is [1 li 2]
  3. .

$('.selectContent2,.selectContent1').map(function(){
    return $(this).find('input:checked').map(function() {
        return this.value
    }).get()
}).get()

const $ = document.querySelectorAll

Array.from($('.selectContent1')).map(elem => elem.checked)

Array.from($('.selectContent2')).filter(elem => {
    return elem.checked
}).map(elem => elem.value)


Array.from($('.selectContent1')).every(elem => elem.checked)

const list = [].map.call(document.querySelectorAll('.selectContent1 input:checked'), el => el.value);

console.log(list)

change the filter class name selectContent1

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b351d1-2bf51.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b351d1-2bf51.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?