Skip to content
This repository
Browse code

checkboxradio control improvements

  • Loading branch information...
commit 83765f00b8c8c54c5ac9aa96b18e9952f1c2ff54 1 parent 59abc6f
authored December 16, 2011

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

  1. 7  js/jquery.mobile.forms.checkboxradio.js
7  js/jquery.mobile.forms.checkboxradio.js
@@ -51,8 +51,11 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
51 51
 		});
52 52
 
53 53
 		// Wrap the input + label in a div
54  
-		input.add( label )
55  
-			.wrapAll( "<div class='ui-" + inputtype + "'></div>" );
  54
+		var wrapper = document.createElement('div');
  55
+		wrapper.setAttribute('class','ui-'+inputtype);		
  56
+		input[0].parentNode.insertBefore(wrapper,input[0]);
  57
+		wrapper.appendChild(input[0]);				
  58
+		wrapper.appendChild(label[0]);
56 59
 
57 60
 		label.bind({
58 61
 			vmouseover: function( event ) {

0 notes on commit 83765f0

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