News for hackers. Stuff that matters.
Re:Useful Jquery Examples by mshafrir on Monday April 19, 2010 @09:06AM (#1276592)
Personally, instead of

$('#id').replaceWith('<div>I have been replaced</div>');

I prefer

$('#id').replaceWith($('<div/>').text('I have been replaced.'));

There are no comments on this comment yet.