title: How to get checkbox value and send that to backend?
body: <p>This is front end,</p>
  
  <pre><code>&lt;div class="uk-width-1-4 "&gt;
     &lt;table class="uk-table uk-table-striped uk-table-hover" id="tabledata"&gt;
        &lt;thead&gt;
           &lt;tr&gt;
              &lt;th&gt;&lt;input type="checkbox"  &gt;&lt;/th&gt;
              &lt;th&gt;Site ID&lt;/th&gt;
           &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
           &lt;tr&gt;
              &lt;td&gt;
                 &lt;input type="checkbox" id="chkall"  value="&lt;%= d.siteid%&gt;"&gt;
              &lt;/td&gt;
              &lt;td&gt;&lt;%=d.siteid%&gt;&lt;/td&gt;
           &lt;/tr&gt;
           &lt;%  });
              } %&gt;         
        &lt;/tbody&gt;
     &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is backend,</p>
  
  <pre><code>   var user_id=req.query.user_id; 
     var siteid=req.query.chkall;
     console.log("chkall =="+siteid);
      sql="UPDATE site SET userid='"+user_id+"' WHERE siteid IN('"+siteid+"')";
    }
    getSQLData(sql, function(resultsets){
        console.log("user...sql"+sql);
         userresults = resultsets;
    });
  </code></pre>