pass the id of textbox to dropdownliast onchange event in javascript
<p>I have a dropdownlist defined:</p>

<pre><code>         &lt;asp:DropDownList Width="300px" ID="PlaceHoldersDropDownList" runat="server"
                AppendDataBoundItems="True" TabIndex="3" onchange="PasteTextInEditor 
                                    (this.options[this.selectedIndex].value), '&lt;%= 
                                     SubjectTextBox.ClientID %&gt;'"   &gt;
</code></pre>

<p>So, I pass the selected text and a textbox ID to a javascript function. The text box is defined as:</p>

<pre><code>       &lt;asp:TextBox Width="660px" ID="SubjectTextBox" Text='&lt;%# Bind( "Subject") %&gt;' 
           runat="server" TabIndex="4" MaxLength="100"&gt;
        &lt;/asp:TextBox&gt;
</code></pre>

<p>So, in script function, when i put alert like this :</p>

<pre><code>            alert(text);    //shows selected value
            alert(editor); // shows undefined
</code></pre>

<p>So editor value is turning up undefined. So, can you please let me know the mistake I've been doing. I would like to save that value selected from dropdown into textbox.Please help me fixing th eproblem. Thank You</p>
