<!DOCTYPE html>src="//libs.baidu.com/jquery/1.10.2/jquery.min.js"$(document).ready(function(){$("button").click(function(){$("p").wrapAll("<div></div>");});});type="text/css"div{background-color:yellow;}This is a paragraph.This is another paragraph.Wrap a div element around all p elements