Reputation: 85545
I'm amazed this works: demo
<span>
<input type="checkbox" />
</span>
span{
border: 1px solid red;
}
But this doesn't work: demo
<input type="checkbox" />
$('input').wrap('<span />').css('border','1px solid red');
Upvotes: 2
Views: 48