Php echo in javascript - not working
<p>I try to use PHP code in Javascript. Unfortunatelly something wrong. </p>

<p>Try on localhost, wampserver.</p>

<p>This is a part of the jquery validation:</p>

<pre><code>  "onlyNumber":{
    "regex":"/^[0-9\ ]+$/",
    "alertText":"&lt;?php echo 'This is the message' ?&gt;"}, 
</code></pre>

<p>Any idea why this give me blank message window?</p>

<p>Thank you</p>

<p>File extension is PHP.
The Js file is included end of my php (before ).</p>

<pre><code>&lt;script type="text/javascript" src="js/all.js"&gt;&lt;/script&gt;
</code></pre>

<p>Tried to close the echo command with ;</p>
