Hi guys,

This is my first post here, please be nice . Im working on an asp.net page which has the following textbox:

<asp:TextBox id="txtQuickComment" class="contact" runat="server" style="width:300px; height:25" Rows="3" MaxLength="250" TextMode="MultiLine"></asp:TextBox>

I then have an image placeholder defined as follows:

<img src="../images/smilies/aggressive.gif" alt="upset :-<" id="aggressive" onclick="javascript: addSmileyToTextBox('aggressive')"/>

When the image is clicked, it calls the addSmileyToTextBox() javascript function, passing the string 'aggressive'. The function is as follows:

function addSmileyToTextBox(smileyName)
var smiley = smileyName.toString();
var txt = document.getElementById("txtQuickComment");

The function above alerts "null". Is this to say the textbox does not exist? Strange. What i wish to do is to modify the function to append a string to the textbox's contents.

Please help?