title: how to pass php variable to jquery
body: <p>i try to pass php variable to jquery ,i have try to use</p>
  
  <p>
   But it's not working success, when i try to use</p>
  
  <p>dataSource: 
  insted</p>
  
  <pre><code>dataSource: [
    { childName: "Child1", childId: 1, parentId: 1 },
    { childName: "Child2", childId: 2, parentId: 2 },
    { childName: "Child3", childId: 3, parentId: 1 },
    { childName: "Child4", childId: 4, parentId: 2 }
   ]
  </code></pre>
  
  <p>it's cannot show the second select ,but i find the $data is the same as the original data</p>
  
  <p>my code ,</p>
  
  <pre><code>&lt;head&gt;
   &lt;meta charset="utf-8"/&gt;
   &lt;title&gt;Kendo UI Snippet&lt;/title&gt;
  
   &lt;link rel="stylesheet"     href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.common.min.css"/&gt;
  &lt;link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.rtl.min.css"/&gt;
  &lt;link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.silver.min.css"/&gt;
  &lt;link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.607/styles/kendo.mobile.all.min.css"/&gt;
  
  &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://kendo.cdn.telerik.com/2016.2.607/js/kendo.all.min.js"&gt;        
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
   &lt;input id="parent" /&gt;
   &lt;input id="child" /&gt;
   &lt;?php 
   $data = '[
    { childName: "Child1", childId: 1, parentId: 1 },
    { childName: "Child2", childId: 2, parentId: 2 },
    { childName: "Child3", childId: 3, parentId: 1 },
    { childName: "Child4", childId: 4, parentId: 2 }
   ]';
  ?&gt;
  &lt;script&gt;
  $("#parent").kendoDropDownList({
    dataTextField: "parentName",
    dataValueField: "parentId",
    dataSource: [
    { parentName: "Parent1", parentId: 1 },
   { parentName: "Parent2", parentId: 2 }
     ]
    });
  
   $("#child").kendoDropDownList({
  cascadeFrom: "parent",
  dataTextField: "childName",
  dataValueField: "childId",
  
  dataSource: &lt;?php json_encode($data); ?&gt;
  });
  &lt;/script&gt;
  
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>i don't know what's problem with my code,please help me to solve the problem , anyhelp will be appreciated ! thanks!</p>