title: How to bind Data to Dropdownlist in Kendo Ui Mobile
body: <p>I have been using Kendo Mobile to develop an application, previously same application i have  done in Kendo web,it's works fine.The main problem is that i have to bind data to two dropdownlist which the below code i have written,when my application is running it show an error like "Microsoft JScript runtime error: Object doesn't support property or method 'append'".</p>
  
  <p>in HTML</p>
  
  <pre><code>&lt;div id="forms" data-role="view" data-title="Form Elements" data-init="initForm"&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;label style="margin-left: 20px"&gt;
                      Company:&lt;/label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;select id="ddlCompany" style="width: 200px"&gt;
                      &lt;option&gt;Select Company&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
              &lt;td class="style1"&gt;
                  &lt;label style="margin-left: 20px"&gt;
                      Category:&lt;/label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;select id="ddlCategory" style="width: 200px"&gt;
                      &lt;option&gt;Select Category&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;label style="margin-left: 20px"&gt;
                     Product :&lt;/label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;select id="ddlProduct" style="width: 200px"&gt;
                      &lt;option&gt;Select Product&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  
     function initForm() {
          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "FlashReportMobileWebService.asmx/GetCompany",
              dataType: "json",
              success: function (data) {
                  for (i = 0; i &lt; data.d.length; i++) {
                      ddlCompany.append($("&lt;option&gt;&lt;/option&gt;").val(data.d[i].Company).html(data.d[i].Company));
                  };
  
  
                  $("#ddlCompany").kendoDropDownList();
              }
          });
          $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url: "FlashReportMobileWebService.asmx/ToCategoryDropDown",
              dataType: "json",
              success: function (data) {
                  for (i = 0; i &lt; data.d.length; i++) {
                      ddlCategory.append($("&lt;option&gt;&lt;/option&gt;").val(data.d[i].Category).html(data.d[i].Category));
  
                  };
                  $("#ddlCategory").kendoDropDownList();
              },
              failure: function (msg) {
                  alert(msg);
              }
          });
      }
      $("#ddlCategory").change(
          function (e) {
              var ddlProduct= $("#ddlProduct");  
              var dataItem = $("#ddlCategory").val();  
              $.ajax({
                  type: "POST",
                  contentType: "application/json; charset=utf-8",
                  data: "{'Category':'" + dataItem + "'}",
                  url: "FlashReportWebService.asmx/ToFillProductDropDown",
                  dataType: "json",
                  success: function (data) {
                      ddlProduct.empty();
                      for (i = 0; i &lt; data.d.length; i++) {
                          ddlProduct.append($("&lt;option&gt;&lt;/option&gt;").val(data.d[i].ProductName).html(data.d[i].ProductName));
                      };
                      $("#ddlProduct").kendoDropDownList();
                  },
                  failure: function (msg) {
                      alert(msg);
                  }
              });
          });
  
      var app = new kendo.mobile.Application(document.body);
  </code></pre>
  
  <p>thanks for reading this</p>