Created
September 26, 2013 18:19
-
-
Save timelf123/6718329 to your computer and use it in GitHub Desktop.
all inputs, selects and textareas within .uniform have uniform() run on them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.uniform input:checkbox[class]').each(function() { | |
var checkboxClasses = $(this).attr('class'); | |
$(this).parent().parent('div.checker').addClass(checkboxClasses); | |
}); | |
$('.uniform input:radio[class]').each(function() { | |
var radioClasses = $(this).attr('class'); | |
$(this).parent().parent('div.radio').addClass(radioClasses); | |
}); | |
$('.uniform select[class]').each(function() { | |
var selectClasses = $(this).attr('class'); | |
$(this).parent('div.selector').addClass(selectClasses); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment