Use javascript to insert letters -


is there way use javascript insert letter in textarea via onclick? letters dont need fancy, basic. have no code show because dont know begin. maybe clickable div?

edit: how can insert letters textarea typed words? not want erase in there

simple:

html:

<textarea id="input"></textarea> <button onclick="maketextappear();">presto!</button> 

javascript:

function maketextappear() {     var text = document.getelementbyid('input');     text.value = "hello world"; } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -