0

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

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by veledrom
0

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>
0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.