Hi devinemke, thanks for the quick reply. it still doesnt work for me however when I put in my full string:
$new = '<script type="text/javascript">showAddress("address1"); return false</script>';
echo $new;
If i run the function in the head i.e. <script type="text/javascript">showAddress("address1"); return false</script> it works perfectly however. Have yo any other ideas what I am doing wrong
I have also tried:
$new = "<script type="text/javascript">showAddress('address1'); return false</script>";
and
$new = "<script type=\"text/javascript\">showAddress('address1'); return false</script>";