Have a good afternoon.
How do I make a function in javascript to get the value of the input and according to the input redirect to the link I want.
Turma 1 - Option 1
Turma 2 - Option 2
Link turma1 ex: google.com.br
Link turma2 ex: yahoo.com.br
I want my button to get the link according to the choice option.
How do I do it?
<div class="escolha-turma">
<input type="radio" class="radiu" id="turma1" value="google.com.br">
<div class="col-md-5 box">
<strong>Inicio</strong>
<span>08/05/2018</span>
</div>
<div class="col-md-5 box">
<strong>Termino</strong>
<span>08/05/2018</span>
</div>
</div>
<div class="escolha-turma">
<input type="radio" class="radiu" id="turma2" value="yahoo.com.br">
<div class="col-md-5 box">
<strong>Inicio</strong>
<span>08/05/2018</span>
</div>
<div class="col-md-5 box">
<strong>Termino</strong>
<span>08/05/2018</span>
</div>
</div>
<a href="#">Pega o link do input radio escolhido</a>