The scenario is as follows: I dynamically add an html. Once the html is generated it gets +/- like this:
var templateHtml = "<div class='bola'>Bola 1</div><div class='bola'>Bola 2</div><div class='casa'>Casa 1</div>";
I'd like to add the "soccer" class in all the divs with the "ball" class.
I tried this way:
templateHtml = $(templateHtml).find(".bola").addClass("futebol");
But it did not work ....