Hi,
Can someone help me with this problem:
I try to add a pound sign in my javascript function but it doesn't appears correctly. I've got ? insteade.
This is my function
<script language="javascript">
function setOptions(chosen) {
var selbox1 = document.myform.price_from;
var selbox2 = document.myform.price_to;
selbox1.options.length = 0;
selbox2.options.length = 0;
if (chosen == "1") {
{/literal}
{foreach from=$price_sale key=key item=item}
{literal}
selbox1.options[selbox1.options.length] = new Option("{/literal}£{$item}{literal}");
selbox2.options[selbox2.options.length] = new Option("{/literal}£{$item}{literal}");
{/literal}
{/foreach}
{literal}
}
if (chosen == "2") {
{/literal}
{foreach from=$price_let key=key item=item}
{literal}
selbox1.options[selbox1.options.length] = new Option("{/literal}£{$item}{literal}");
selbox2.options[selbox2.options.length] = new Option("{/literal}£{$item}{literal}");
{/literal}
{/foreach}
{literal}
}
}
</script>
Thanks