obj.html(obj.children().html());

obj.children() selects the SPAN that we created...
obj.childern().html(), therefore, returns all the content of the SPAN,
which was originally the content of the P

we want to set the content back from the SPAN to the P... so, we have
to put the content that we selected inside the html() method ...

obj.html (  obj.children().html()  )

Reply via email to