I have the following problem, I have on my form several issues that are handled using the radio button, as print attached. I'm using jquery to change the color of the button when it's selected, the problem is that when the person selects the type of the request and goes on the bottom line to select the service deadline, the top line that she had selected loses the selection , and would not want that to happen, how to fix it? A solution in javascrip would also suit me.
HTML
<div class="row form-group">
<div class="col-md-8">
<div class="btn" data-toggle="buttons">
<label class="btn btn-info">
<input type="radio" name="motSolic" id="motNovaFuncao" value=3 autocomplete=off> Nova Função
</label>
<label class="btn btn-info">
<input type="radio" name="motSolic" id="motRemanejamento" value=4 autocomplete=off> Remanejamento
</label>
<label class="btn btn-info">
<input type="radio" name="motSolic" id="motAumentoQuadro" value=5 autocomplete=off> Aumento de Quadro
</label>
<label class="btn btn-info">
<input type="radio" name="motSolic" id="motSubstituicao" value=6 autocomplete=off> Substituição de Colaborador
</label>
</div>
</div>
</div>
<div class="row form-group">
<div class="col-md-4">
<label>Prazo do Serviço:</label>
</div>
</div>
<div class="row form-group">
<div class="col-md-4">
<div class="btn" data-toggle="buttons">
<label class="btn btn-info">
<input type="radio" name="prazoServico" id="motTemporario" value=7 autocomplete=off> Temporário
</label>
<label class="btn btn-info">
<input type="radio" name="prazoServico" id="motIndeterminado" value=8 autocomplete=off> Indeterminado
</label>
</div>
</div>
</div>
JQUERY
<script>
$(document).ready(function(){
$('#identAbertura').change(function(){
$('.btn').removeClass().addClass('btn').addClass('btn-default');
$(this).parent().removeClass("btn-default").addClass("btn-success");
});
$('#identMov').change(function(){
$('.btn').removeClass().addClass('btn').addClass('btn-default');
$(this).parent().removeClass("btn-default").addClass("btn-success");
});
});
</script>