PDA

View Full Version : adding text to textarea using <option>



xecure
10-05-2005, 03:50 PM
I'm a php dude and javascript just kills me.

I would appreciate it if some one showed me examples of how to add text to a text area using <option> tags.

Thanks in advanced.

Twey
10-05-2005, 05:00 PM
<select onchange="document.getElementById('tx').value+=this.value;">
<option value="ay">A</option>
<option value="bee">B</option>
<option value="cee">C</option>
</select>
<textarea id="tx"></textarea>

xecure
10-05-2005, 05:21 PM
you kick ass