Have a code that updates a textarea:
var input_baseprice = $('.active .input_baseprice').html();
$('[name=baseprice]').html(input_baseprice);
However, when there are many .input_baseprice elements, the textarea gets content only from the first one.
How can I automate creation of input_baseprice* to get:
$('[name=baseprice]').html(input_baseprice + '<br>' + input_baseprice2 + '<br>' + input_baseprice3 ...);
?
That is documented in the api notes http://api.jquery.com/html/
Try this
After re-reading your question, you may need to swap our
.html()for.val()depending upon the type of element you are dealing with