I have this
<input><?php echo $elementos?><input>
...
function updateTextArea() {
var allVals = [];
$('input:checked').each(function() {
allVals.push($(this).attr("id"));
});
$('div#choose').html(allVals+"<br/>")
};
$(function() {
$('input').click(updateTextArea);
updateTextArea();
});
Good morning. I have this code that recycles it from this page.
It works perfectly but it does not come with line break in my ( div#choose
) and I do not know how to place it so that each element with its line break of that array comes out.