Hi,

I have a textarea with 2 information in (bmw, mercedes).
When i click on bmw, it will be transfered into other texarea.
How can i do it?

Thanks

Solved.

<script type="text/javascript">
    function add() {
		
		if (!(form1.textaresector.value.indexOf(form1.sectorSelectbox.options[ form1.sectorSelectbox.selectedIndex ].value)!==-1)) {
	        if (form1.textaresector.value == "") {
				form1.textaresector.value += form1.sectorSelectbox.options[ form1.sectorSelectbox.selectedIndex ].value ;
			} else {
				form1.textaresector.value += ",";			
				form1.textaresector.value += form1.sectorSelectbox.options[ form1.sectorSelectbox.selectedIndex ].value ;
			}
		}
    }
</script>

two methods

<div style='border:1px solid #000000'>
<a onclick='putithere.innerHTML="moped";'>Mercedes</a><br>
<a onclick='putithere.value="taxi";'>BMW</a></div>
<textarea id='putithere' name='putithere' rows='5' cols='50'>&nbsp;</textarea>

there are probably more

This question has already been answered. Start a new discussion instead.