Skip to content
This repository
Browse code

revert to wrapAll for checkbox and radio Fixes #3688

  • Loading branch information...
commit 77bfb5a30abc13a0181708bd5c8a8c3af6d111b0 1 parent 52bb440
John Bender authored March 01, 2012

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  js/jquery.mobile.forms.checkboxradio.js
5  js/jquery.mobile.forms.checkboxradio.js
@@ -66,9 +66,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
66 66
 		// Wrap the input + label in a div
67 67
 		var wrapper = document.createElement('div');
68 68
 		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 );
72 71
 
73 72
 		label.bind({
74 73
 			vmouseover: function( event ) {

0 notes on commit 77bfb5a

Please sign in to comment.
Something went wrong with that request. Please try again.