I want to add css styles with jQuery, but not be in in the html when I print out html(). Example:
$('#wat').css("cursor", "pointer");
$('#ok').click(function() {
var str = $("#wat").html();
$("#html").text(str);
});
when it prints out the html, inside the element with the ID of "wat", it has style="cursor: pointer;
Is there a way to add the css without being in the html? thanks