Actually it could happen that's the title it's not exactly correct, so sorry. My problem is the following. I have a variable (what contains html), what it get from ajax response and i would like to add new attribute a few element. And after it insert to the dom.
For example, here this:
ajaxString = "<b>asd</b>";
replaced = $("b", $(ajaxString) ).css('background','#ff0000');
$("body").html(replaced);
But it's doesn't work. I hope, somebody have an idea!
Thanks for the Help!