Skip to content

Instantly share code, notes, and snippets.

@AaronPresley
Created April 14, 2012 18:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronPresley/2386860 to your computer and use it in GitHub Desktop.
Save AaronPresley/2386860 to your computer and use it in GitHub Desktop.
Resize input to bootstrap span
var size_bootstraps = function(){
$('form.size_bootstraps').each(function(){
$(this).find('.row').each(function(){
$(this).find('> div').each(function(){
$(this).find('input[type="text"], textarea, select, input.do_size').addClass(
$(this).attr('class') );
});
});
});
}
size_bootstraps();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment