replace:
88: $('#'+this).html($(data).find('#'+this));to:
88: $('#'+this).replaceWith($(data).wrap('<span>').parent().find('#'+this+':first'));.replaceWith(...) - because after each update operation new element (with ID) inserted in element with original ID

.wrap('<span>').parent().find(..) - to find first element with given id (try to:
$('<div id="yw0">..</div>').find('#yw0').length // result = 0 - mistake!with .wrap('<span>').parent().find(..) all works fine!)

Help



-











