Reputation: 447
I would like to load a text into text area, when clicked in a map area. When I click in the second area, I would like to add another (different) text
How can I make this happen?
Upvotes: 1
Views: 954
Reputation: 3931
I don't know Mootools, so I did this in JS only without framework. This may not be a good solution, but this is basically what you want to do, no matter how you append the text.
function funzione1() {
// alert("add text : 1.");
var e = document.getElementById('my_text');
e.value += "1";
}
function funzione2() {
// alert("add text: 2");
var e = document.getElementById('my_text');
e.value += "2";
}
Upvotes: 2
Reputation: 160170
<textarea>
by id. Upvotes: 1