I have some inline jQuery mixed with PHP and i want to do something like this:
$("#someDiv").html("<?php include(page.php); ?>")
The problem is that ill get "Uncaught SyntaxError: Unexpected token ILLEGAL" errors due to new line characters and i think also double quote characters inside page.php.
My question is how can i go about doing an include() into a html() without worrying about illegal characters?
Thanls
#someDiv? Something like<div id="someDiv"><?php include (page.php);?></div>.someDivis located in another partial view