Hi, > var elem = $("[EMAIL PROTECTED]'#']"); > elem.html('<div class="someclass">' + elem.html() + '</div>');
That is OK, if there is only one a element. In case the HTML-Body looks like this: <a href="#">1234</a> <a href="#">6789</a> You will get <a href="#"><div class="someclass">1234</div></a> <a href="#"><div class="someclass">1234</div></a> Because elem.html() returns only the content of the first element in the jQuery-Object. Christof _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/