[Solved] Insert Variable PHP in Jquery [duplicate]


At first glance, you have a syntax error. Your string needs to be in quotes.

Try var error = "<?php echo $reportErr; ?>";

0

solved Insert Variable PHP in Jquery [duplicate]