I am working with some server code that generates html that looks something like this:
<input type="radio" /> <label>something</label> <input type="radio" /> <label>something</label> <input type="radio" /> <label>something</label> <input type="radio" /> <label>something</label>
I want to wrap each pair in between, but I cannot determine how to select pairs of elements in jquery to use wrapAll() for them. I cannot change the html I'm working with. Can anyone help?
source share