used PHP inside Javascript?
<pre><code>$('#categories_parent').change(function(){
var categories = $(this).val();
"&lt;? json_encode($cat) = form::get_parent(?&gt;"categories"&lt;?) ?&gt;";
ver cat = "&lt;?=$cat?&gt;";
alert(cat);    
});
</code></pre>

<p>why i cant right php in java  help me
i tray json_encode and without json_encode not work</p>

<pre><code>$('#categories_parent').change(function(){
var categories = $(this).val();
"&lt;? json_encode($cat) = form::get_parent(?&gt;"categories"&lt;?) ?&gt;";
ver cat = "&lt;?=$cat?&gt;";
alert(cat);    
});
</code></pre>
