Remy Sharp schrieb:
Sorry - I should add the test:The JS: $(function() { $('#test').wrap('<b></b>'); }); Then standard HTML with a P tag with the ID of 'test' and some dummy content within it.
This test is not guaranteed to work because a <b> element cannot contain a block level element like a paragraph.
A reliable test would look like: $(function() { $('#test').wrap('<div></div>'); }); -- klaus