title: Insert multiple checkbox value using jquery and ajax but only inserted one record
body: <p>Here If i select Both checkBoxes Only bed val is inserted
  I want both the values to be inserted.</p>
  <pre class="lang-js prettyprint-override"><code>$(&quot;#btnSubmit11&quot;).click(function() {
  
    if ($('#chkbed').is(':checked'))
  
    {
      FacilitiesGiven.Type_of_Facilities = $(&quot;#chkbed&quot;).val();
      if ($('#chkpillow').is(':checked'))
        FacilitiesGiven.Type_of_Facilities = $(&quot;#chkpillow&quot;).val();
    }
  
  
    $.ajax({
      type: &quot;GET&quot;,
      url: &quot;WebService.asmx/FacilitiesGiven_insert1&quot;,
      data: '{fg: ' + JSON.stringify(FacilitiesGiven) + '}',
      contentType: &quot;application/json; charset=utf-8&quot;,
      dataType: &quot;json&quot;,
      success: OnSuccess,
      async: true,
      cache: false,
      error: OnErrorCall
    });
  });
  </code></pre>