Skip to content

Commit 77bfb5a

Browse files
committed
revert to wrapAll for checkbox and radio Fixes jquery-archive#3688
1 parent 52bb440 commit 77bfb5a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

js/jquery.mobile.forms.checkboxradio.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
6666
// Wrap the input + label in a div
6767
var wrapper = document.createElement('div');
6868
wrapper.className = 'ui-' + inputtype;
69-
input[0].parentNode.insertBefore(wrapper,input[0]);
70-
wrapper.appendChild(input[0]);
71-
wrapper.appendChild(label[0]);
69+
70+
input.add( label ).wrapAll( wrapper );
7271

7372
label.bind({
7473
vmouseover: function( event ) {

0 commit comments

Comments
 (0)