Hello :)
I am new in jquery and after finishing my first task , here is my next problem.
I would like to add Text in a texfield after klicking on doropdownbox / selectbox.
This works so far but it resets the text to the last value youve klicked.When you klick again.
I need to let the Text from last klick and add new one after klicking again...So i could fill the textfield with my Dropdown choises.
I hope you can help me.
My code looks like this :
$('#dropdown').change(function () {
var str = "";
$("select option:selected").each(function () {
str += $(this).text() + " ";
});
$("#textarea").text(str);
.change();
// Reset Dropdown to select again
$("#dropdown").click(function(){
$("form").each(function() {
this.reset();
});
});