<textarea id="mytextbox" value=""/><input id="myinputbox" type="text">Javascript:document.getElementById('mytextbox').value = "this goes into the text box"document.getElementById('myinputbox').value = "this goes into the input box"jQuery:$('#mytextbox').attr('value','this goes into the text box');$('#myinputbox').attr('value','this goes into the input box');
emoticon('<b>Hello World</b>');