Skip to content

Instantly share code, notes, and snippets.

@Artem-Schander
Last active November 10, 2015 15:49
Show Gist options
  • Save Artem-Schander/8a39a5c797b978f5eb9b to your computer and use it in GitHub Desktop.
Save Artem-Schander/8a39a5c797b978f5eb9b to your computer and use it in GitHub Desktop.
Typo3 + Twitter Bootstrap - Checkbox/Radio Button Fix
$('[data-toggle=buttons] .btn > input[type=hidden]').each(function() {
if($(this).attr('name') == $(this).next().attr('name') || $(this).attr('name') + '[]' == $(this).next().attr('name'))
$(this).insertBefore($(this).parent().parent());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment