This is a simple example of how to use Smarty variables in JavaScript.
{literal}
<script>
$(window).load(function() { var sample='/sample.php?v=<strong>{/literal}{$smarty_variable}{literal}</strong>'; });
</script>
{/literal}
This is a simple example of how to use Smarty variables in JavaScript.
{literal}
<script>
$(window).load(function() { var sample='/sample.php?v=<strong>{/literal}{$smarty_variable}{literal}</strong>'; });
</script>
{/literal}