How to write javascript code inside TPL file in smarty template Language

Just you have to add javascript code between LITERAL special Tags

Example

{literal}

// Some javascript code here//

{/literal}

Advertisements