I have made to create an element (a tag) the following code:
var b = $('<div>').css('color','red');
In this way above I will have a div with the text red color ok, now it is the following.
I'm getting a STRING that contains all the tag code like this:
var a = "<div style=\"text-overflow: ellipsis; overflow: hidden; padding-bottom: 2px; text-align: center; margin-top: 4px;\">47782</div>";
$(a).css('color','red'); //TENTATIVA DE ALTERAR A COR, MAS NÃO DA ERRO NEM FUNCIONA
But this is not changing, I can not create this tag as in the first code snippet, because the content of this string is received dynamically in my script.
My question is whether I have seen jQuery make the modifications or will I have to do everything in the hand by directly moving the entire string?