ok…thanks. However, this is to append new text ‘blah blah text’ to the input field, but how do i get the original text entered into the input field and THEN append ‘blah blah text’, like this
mean i entered ‘abcd…text text’ into testField input field FIRST, and THEN append ‘blah blah text’ and becomes ‘abcd…text text blah blah text’
this is for onclick=" document.mainForm.testField.value+=‘blah blah text’ "
but $(‘#testField’).val(‘blah blah text’); will wipe out ‘abcd…text text’ and append ‘blah blah text’, now I have ONLY ‘blah blah text’, not the full ‘abcd…text text blah blah text’ I am actually looking for.
I actually making a shoutbox app and need to append smilies along side original text.