I need to wrap 3 divs into one using jQuery.
$('.one, .two, .three').wrapAll(''); or $('.one, .two, .three').wrapAll( $('').addClass('wrap') ); Reference: http://docs.jquery.com/Manipulation/wrapAll 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
or
$('.one, .two, .three').wrapAll( $('').addClass('wrap') ); Reference: http://docs.jquery.com/Manipulation/wrapAll 0 讨论(0) 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Reference: http://docs.jquery.com/Manipulation/wrapAll