Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

checkboxradio control improvements

  • Loading branch information...
commit 83765f00b8c8c54c5ac9aa96b18e9952f1c2ff54 1 parent 59abc6f
sgrebnov authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 js/jquery.mobile.forms.checkboxradio.js
View
7 js/jquery.mobile.forms.checkboxradio.js
@@ -51,8 +51,11 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
});
// Wrap the input + label in a div
- input.add( label )
- .wrapAll( "<div class='ui-" + inputtype + "'></div>" );
+ var wrapper = document.createElement('div');
+ wrapper.setAttribute('class','ui-'+inputtype);
+ input[0].parentNode.insertBefore(wrapper,input[0]);
+ wrapper.appendChild(input[0]);
+ wrapper.appendChild(label[0]);
label.bind({
vmouseover: function( event ) {
Please sign in to comment.
Something went wrong with that request. Please try again.