line
4, name1
is recreated
Ah, I missed that!
----
It's always helpful to post your HTML, so that we don't
have to guess.
If you aren't moving #name1 around in the
document, simply replace it's HTML content. You do not have to
remove it and then put it back!
IF your HTML looks something like this (I have to guess...):
<div class='afterthis'>
<div class='name1'>
<div class='sched-left-col'>
<p>blah,
blah, blah</p>
</div>
</div>
</div>
Simply use:
$(
"#name1" ).html( '<div
class="sched-left-col" style="color:#000;
font-size:2em; font-family: "Orbitron",
sans-serif; padding:0 0.3em;">'+ obj.sched_on1
+'</div><div
class="sched-content"><div
style="font-size:3em; padding-left:1em; color:#FFF;
">'+ obj.student1
+'</div></div><div
class="clear"></div>' );
But,
geez, please just add a CSS class and style in your stylesheet
instead of all those inline styles.