Make div wrap around content with function wrap in jQuery

The following web example consists of a div with id article. The scripts executed, using the wrap() function, will be the following:

  • We select the div with id "article" and place it inside the div with id article_external.
  • Select the div with id "article" and place it inside the div with id article_ and the index of the generated function. This div in turn must be inside the div with id article_external.
Comments

PHP Captcha


Interesting Articles