title: Post checked checkbox value, get in nodejs and save in MongoDB
body: <p>Here's my HTML script:</p>
  
  <pre><code>&lt;body&gt;
      &lt;form method="POST"&gt;
          &lt;div&gt;
              &lt;input type="checkbox" name="color" value="red"&gt;red
              &lt;br&gt;
              &lt;input type="checkbox" name='color' value="blue"&gt;blue
              &lt;br&gt;
              &lt;input type="checkbox" name='color' value="Green"&gt;green
              &lt;br&gt;
              &lt;input type="checkbox" name='color' value="black"&gt;black
              &lt;br&gt;
          &lt;/div&gt;
          &lt;br&gt;
          &lt;br&gt;
          &lt;div&gt;
              &lt;input type="checkbox" name='cars' value="benz"&gt;Benz
              &lt;br&gt;
              &lt;input type="checkbox" name='cars' value="BMW"&gt;BMW
              &lt;br&gt;
              &lt;input type="checkbox" name='cars' value="Kia"&gt;Kia
              &lt;br&gt;
              &lt;input type="checkbox" name='cars' value="Mazzerati"&gt;Mazzerati
              &lt;br&gt;
          &lt;/div&gt;
          &lt;input type="button" onclick="sendOPT()" value="send"&gt;
      &lt;/form&gt;
      &lt;div id="show"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;script src="../js/jquery-3.3.1.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      function sendOPT() {
          $.ajax({
              url: '/send',
              method: 'post'
          }).done(message =&gt; {
              $(show).html("its Done");
          })
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to send checked checkBox item into my backend (nodejs) and save them into my database(Mongodb)</p>
  
  <p>I wrote my backend side as the following:</p>
  
  <pre><code>app.post('/send', async(req, res) =&gt; {
      try {
          console.log("start");
          const body = _.pick(req.body, ['colors', 'cars'])
          console.log(body);
  
          let test = new fav({
              favcolor: body.colors,
              favcar: body.cars
          })
          await test.save();
          console.log(test);
          res.send('ok')
  
  
      } catch (e) {
          res.status(400).json({
              ERROR: `Something wend wrong and err is ${e}.`
          })
      }
  });
  </code></pre>
  
  <p>When I check and click for send, I have nothing, I have tested my database and backend by any input like as radio or text and it working good, but in this situation, not working.</p>
  
  <p>[<strong>NOTE</strong>]:</p>
  
  <ul>
  <li>I use (express,Mongoose,body-parse,lodash,...)</li>
  </ul>