Posted By

joshuatravis on 09/04/10


Tagged

jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

romainsauger


Wrap all elements between two selectors


 / Published in: JavaScript
 

  1. $('.question').nextAll().not('.question').wrap('<div class="answer"></div>');

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: joshuatravis on September 4, 2010

This was for an faq collapse. Hence the question/answer class names.

You need to login to post a comment.