/ Published in: JavaScript
Expand |
Embed | Plain Text
$('.question').nextAll().not('.question').wrap('<div class="answer"></div>');
Comments
Subscribe to comments
You need to login to post a comment.
joshuatravis on 09/04/10
1 person have marked this snippet as a favorite
$('.question').nextAll().not('.question').wrap('<div class="answer"></div>');
Subscribe to comments
You need to login to post a comment.
This was for an faq collapse. Hence the question/answer class names.