Olaf,
How about:
var layer = '<?= $layer ?>';
_______
SEAN O
Olaf wrote:
>
> Hi at all,
> i works not so long with JS. I will a var to gif in Jquery, the Snippet:
>
> <script type="text/javascript">
> var layer = '2';
> $(document).ready(function(){
> $('#menu-layer0').tabs({on: (layer)});
> });
> </script>
>
> The 2 is generated with PHP and she must go in this tabs({on: 2});
>
> Thank you and sorry, no better english :(
>
>
>
--
View this message in context:
http://www.nabble.com/Variable-from-PHP-to-Jquery-tf2448700.html#a6827514
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/