You need to escape "
, so it won’t be interpreted as end of string. Use \
to escape it:
echo "<script>$('#edit_errors').html('<h3><em><font color=\"red\">Please Correct Errors Before Proceeding</font></em></h3>')</script>";
Read more: strings and escape sequences
More Related Contents:
- Array value is replaced when second one stores in php
- Counting High Quality visitor for ads [closed]
- How do you modify a file using JavaScript together with PHP?
- PHP get contents of a div, and echo the div contents in same page
- How to change data php to javascript json [closed]
- How to create these webpages
- Load php function onClick [closed]
- How To See Who Has Liked A Picture In Php And My Sql Database
- What are cookies and sessions, and how do they relate to each other?
- Is localStorage.getItem(‘item’) better than localStorage.item or localStorage[‘item’]?
- Pass Javascript variable to PHP via ajax
- How to call ajax in WordPress
- Advanced JavaScript: Why is this function wrapped in parentheses? [duplicate]
- When and where does JavaScript run, how about PHP? Can I combine the two?
- difference between dot notation and bracket notation in javascript [duplicate]
- How to read and echo file size of uploaded file being written at server in real time without blocking at both server and client?
- Determine timezone from latitude/longitude without using web services like Geonames.org
- Difference between var and this in Javascript functions?
- “elseif” syntax in JavaScript
- Encrypt in PHP openssl and decrypt in javascript CryptoJS
- json_encode not preserving order
- How to replace html element with ajax response?
- jQuery AJAX Call to PHP Script with JSON Return
- javascript syntax: function calls and using parenthesis
- How to make the value stored in the PHP session update with the Ajax submission
- How to get address location from latitude and longitude in Google Map.? [closed]
- JavaScript dot notation [duplicate]
- Using JavaScript to display Laravel’s Variable [duplicate]
- Javascript history.PushState not working?
- Embedding youtube video “Refused to display document because display forbidden by X-Frame-Options”