I have JavaScript and PHP working together fairly well except for this one error.
Code:
<script>
if value == 1
document.write('$phpVariable');
</script>
Only the phpVariable has () in it so I get an error in my javascript - expecting ")". How do I escape the () in JavaScript?