[eluser]Unknown[/eluser]
I'm very new to CI and JS. I'm trying to call a Javascript function from within a view but I can't get this to work.
Code:
<?php foreach ($address as $address_item): ?>
<scrpt>codeAddress("<?php echo $address_item['Address2'] ?>");</scrpt>
<?php endforeach ?>
The JS function is defined inthe header template. Any help would be much appreciated.