您需要转义
",因此它不会被解释为字符串的结尾。使用逃脱它:
echo "<script>$('#edit_errors').html('<h3><em><font color="red">Please Correct Errors Before Proceeding</font></em></h3>')</script>";
您需要转义
",因此它不会被解释为字符串的结尾。使用逃脱它:
echo "<script>$('#edit_errors').html('<h3><em><font color="red">Please Correct Errors Before Proceeding</font></em></h3>')</script>";