I have the following excerpt:
$('#div').html();
I need to add some div
within this div
, but I do not know how, because if I try to do this it gives error:
NOTEM THE ADDITIONAL SIGN FOR THE CONCATENATION
$('#div').html($('<div>',{id: 'divteste', class: 'divteste'}).html('DIV 1') + $('<div>', {id: 'div2', class: 'teste2'}).html('DIV 2'));
The question is: How do I concatenate the addition of several div
within a function html()
of jQuery
?