I'm having problems putting javascript inside the PHP switch case, I get this problem:
Parse error: syntax error, unexpected '<', expecting case (T_CASE) or default (T_DEFAULT) or '}' in
Here is the code:
case 'settings':
<script type="text/javascript">
($('<div class="'+ currentdiv +'">').load(settings.php).appendTo
($(targetdiv)));
</script>
break;