This should work:
Code:
<textarea name="myTextArea" onClick="placeText(this,'*')"></textArea>
<script>
function placeText(txtArea, txt) {
if(txtArea.value!="") return;
txtArea.value=txt;
//FF will automatically put the cursor at the end so skip this IE specific part...
if(navigator.userAgent.toLowerCase().indexOf("msie") != -1) {
var range = txtArea.createTextRange();
range.moveStart('character', 1);
range.select();
}
}
</script>