title: Bind data in select multiple with jquery
body: <p>I am using select multiple control using selectsize.js here is my control</p>
  
  <pre><code>&lt;div class="default selectize-control multi"&gt;
                              &lt;select multiple id="select-email" class="selectize-input items has-options has-items full"&gt;
                                  @*&lt;option value="0"&gt;Zero&lt;/option&gt;
                                  &lt;option value="1"&gt;One&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
  </code></pre>
  
  <p>I am trying to bind this control through ajax 
  here is my Ajax code</p>
  
  <pre><code>var selectemailemail = $("#select-email");
          selectemailemail.empty().append('&lt;option selected="selected" value="0" disabled = "disabled"&gt;Loading.....&lt;/option&gt;');
          $.ajax({
              type: "GET",
              url: "/api/Customer/GetCustomerList",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function (data)
              {
                  console.log('response', data);
  
                  for(var i=0;i&lt;data.length;i++)
                  {
                      console.log('data[i].email' + data[i].Email);
                      $("&lt;option value=" + data[i].TokenId + "&gt;" + data[i].Email + ")&lt;/option&gt;").appendTo(selectemailemail);
  
  
                  }
                  selectemailemail.multipleSelect('refresh');
              },
              failure: function (response)
              {
                  alert(response.responseText);
              },
              error: function (response) {
                  alert(response.responseText);
              }
          });
      };
  </code></pre>
  
  <p>while running ajax codei am getting data in an array 
  here is the data in an array</p>
  
  <pre><code>{Id: 0, ContactNo: null, FirstName: null, LastName: null, Email: "verveshivam@gmail.com ", …}
  </code></pre>
  
  <p>and i want to try to bind the email value in that selected multiple control using code here is my code</p>
  
  <pre><code>for(var i=0;i&lt;data.length;i++)
              {
                  console.log('data[i].email' + data[i].Email);
                  $("&lt;option value=" + data[i].TokenId + "&gt;" + data[i].Email + ")&lt;/option&gt;").appendTo(selectemailemail);
  
  
              }
  </code></pre>
  
  <p>but it is not binding the value 
  in console it is not showing error in console alsoso how can i bind the value in selected multiple control.</p>