0

how can I get checkbox within select tag,and also I need to get values of select box when I select

I am using ajax to append data to select box

success: function(data) 
{
      var toAppend = '';
      $.each(JSON.parse(data),function(i,o)
      {
          toAppend += '<option value='+o.invoice_id+'>'+ o.invoice_number+'</option>';
      });
      $('#client_invoices').append(toAppend);
}

//html
<select name="" id="client_invoices" class="form-control simple-select">
</select>

Can anyone help me on that please

  • do you want to add checkbox inside an `option` – brk Apr 05 '18 at 04:58
  • 3
    You cannot. A – Taplar Apr 05 '18 at 04:58
  • @brk yes I want to add checkbox inside an option –  Apr 05 '18 at 04:59

0 Answers0