substring of php var inside javascript
<p>i am trying to use the substring method inside a Js code wich echoes some php variable but it does not work.</p>

<pre><code>$('#tarif_public_total').val( &lt;?php echo $_tarif_public; ?&gt; * $('#tarif_public').val() )

u=$('#tarif_membre').val()* &lt;?php echo $_tarif_membre; ?&gt; + $('#tarif_public').val()* &lt;?php echo $_tarif_public; ?&gt;
uu=u.substring(0,6)

$('#total_total').val(uu)
</code></pre>

<p>what im doing wrong here?</p>
