smarty

how to pass smarty variable to java script function?

{literal}
<script language="Javascript">
        alert('{/literal}{$my_smarty_variable}{literal}');
</script>
{/literal}
Advertisements