bootstrap-converter
bootstrap-converter copied to clipboard
Input Group Addon
The bootstrap-converter does not support "input group addon" class conversion. I came up with a "input-group-addon" solution that might help. It should be added to inputConverter() function, or somewhere else.
$('.input-group-addon').each(function() {
$(this).removeClass('input-group-addon').addClass("input-group-text");
if ($(this).next().is('input')) {
$(this).wrap('<div class="input-group-prepend"></div>');
} else {
$(this).wrap('<div class="input-group-append"></div>');
}
});