I have a heading followed by two radio inputs and I need to wrap them so that I can style them in the form
<p><strong>Country</strong></p>
<div class="radioWrapper">
<span class="label">Canada</span>
<span class="radio">
<input type="radio" value="Canada">
</span>
</div>
<div class="radioWrapper">
<span class="label">US</span>
<span class="radio">
<input type="radio" value="US">
</span>
</div>
This is what I have, and around everything that I would like to contain a div. I tried to write some jquery, but that didn't work -
$( "strong:contains('Country')" ).nextAll( "div.radioWrapper" ).wrapAll("<div class='RadioWrap'></div>");
Can someone help me point in the right direction
source
share