The following code displays {$products[i]} tag inside the select menu.I tried {literal} but not succeeded.Please tell me how to make this function?.Where I should put {literal} or {rdelim} tags?.
My javascript codes are in an external file and I call this function to add new table data.
item_td.innerHTML="<select>{section name=i loop=$products} <option value='{$products[i]}' > {$products[i]} </option> {/section} </select>";
Regards.
<script src="...it isn't gonna happen without some sort of PHP system to read the JS and pass it to Smarty...