textarea and javascript
<p>I am trying to set text when loading a php file... I am doing somthing like this:</p>

<pre><code>&lt;?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?&gt;
&lt;?php 
echo "&lt;script&gt; 
var a = document.getElementsByName('enquiry'); 
a.value='Pedido de Informação de Preço, relativamente ao producto: http://www.musicland.pt/musicstore/product_info.php?products_id=2581';
&lt;/script&gt;"; ?&gt;
</code></pre>

<p>Now I know that this is silly but is just a text. I want to do an evaluation first and if there is and id then fill the text area</p>

<p>the source generated have it correct and there is no javascript errors but the textarea stills empty.</p>

<p>I don't understand why!?</p>

<p>Can someone help me out on this</p>
