Permalink
Browse files

checkboxradio plugin - replaced setAttribute function with className …

…property
  • Loading branch information...
sgrebnov committed Jan 18, 2012
1 parent 31b5fe4 commit a77ed1d9ffb64abb936731f8768893fcbcae974b
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.forms.checkboxradio.js
@@ -51,8 +51,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
});
// Wrap the input + label in a div
- var wrapper = document.createElement('div');
- wrapper.setAttribute('class','ui-'+inputtype);
+ var wrapper = document.createElement('div');
+ wrapper.className = 'ui-' + inputtype;
input[0].parentNode.insertBefore(wrapper,input[0]);
wrapper.appendChild(input[0]);
wrapper.appendChild(label[0]);

0 comments on commit a77ed1d

Please sign in to comment.