PHP code in JavaScript to get variable
<p>When I press on any of the ‘region’ names in the list ('<code>href</code>' links), the matching list of 'cities' is showing underneath.</p>

<pre><code>&lt;?php while(has_list_regions()) { ?&gt;
  &lt;a href="javascript:show_region('&lt;?php echo list_region_id() ?&gt;');"&gt;&lt;/a&gt;
&lt;?php } ?&gt;

&lt;script type="text/javascript"&gt;
  function show_region(chosen_region_id) 
  {
      ;     
      $(this).slideDown(200);
      ;
        &lt;?PHP $clicked_tag = 'chosen_region_id'; ?&gt;
  }
&lt;/script&gt;
</code></pre>

<p>Is it possible to include PHP code within a section of JavaScript? Because I need to get the ID of the selected ‘<code>href</code>’ that I clicked. I am trying to include the PHP code in the above JavaScript function but it doesn’t work.</p>
