I have this HTML:
North America
and want to add more divs after the strong element to result:
North America
...
...
...
I am trying this:
var row_str = '
content here
';
$('#region_North_America div:last').html(row_str);
However, there is no change to the html. This is probably so since there is no div within the element selected.
I know that the js is making it to this code because I can print the content of row_str to the console.
So, how can I get to the end of that container element to add the new items?
Thx.
解决方案
Try:
$("#region_North_America").append(row_str);