I am getting an error for the line of code included in a js file.
$(document).ready(function(){
//Click "Cancel" button return to Restaurant Manager Page
$("input[name=btCancel]").click(function(){
window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>";
});
});
The uncaught exception points to
window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>";
Is it because I cannot mix JavaScript with PHP code. Your help is kindly appreciated.