PHP value inside JavaScript
<p>The following code works fine, the function <code>load()</code> sends the selected radio button info to the PHP page and display the returned:</p>

<pre><code>&lt;head&gt;
&lt;script&gt;
  $(document).ready(function(){
    $('#myButtons input:radio').change(function() {
      var buttonValue = $("#myButtons input:radio:checked").val();
        $("#myDiv").load('myPHPfile.php', {selectedButtonValue : buttonValue});
    });
  });
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div id="myButtons"&gt;
    &lt;input type="radio" name="category" value="10" /&gt;ButtonA 
    &lt;input type="radio" name="category" value="20" /&gt;ButtonB
    &lt;input type="radio" name="category" value="30" /&gt;ButtonC
  &lt;/div&gt;
  &lt;div id="myDiv"&gt;Click the button to load results&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>myPHPfile.php</p>

<pre><code>&lt;?php 
  if( $_REQUEST["selectedButtonValue"] )
  {
     $buttonPHP = $_REQUEST['selectedButtonValue'];
     echo "Value button is ". $buttonPHP;
  }
?&gt;
</code></pre>

<p>I need an alert box message of the returned PHP value, inside the script, as follows:</p>

<pre><code>;

  $("#myDiv").load('myPHPfile.php', {selectedButtonValue : buttonValue});
  alert(&lt;?php $buttonPHP ?&gt;);

;
</code></pre>

<p>Would it be possible to write the PHP value inside JavaScript?</p>
