1
good I have this code that was supposed to give to show and hide a debt but it does not work me. `
<div class="btn-group custom-btn-group" data-toggle="buttons">
<label class="btn btn-default active" >
<img src="img/3d-pie-chart-icon.png" alt="" />
<input id="circular" type="radio" class="form-control" name="circular" value="0" checked="checked" />
</label>
<label class="btn btn-default" >
<img src="img/SEO-icon.png" alt="" />
<input id="barras" type="radio" class="form-control" name="barras" value="1" />
</label>
</div>$("#barrasgrafico").on("change", function () {
$("#bar_div").show();
$("#chart_div").hide();
});
$("#circulargrafico").on("change", function () {
$("#bar_div").hide();
$("#chart_div").show();
});`
Where are the
divs
corresponding to ID’sbar_div
andchart_div
?– Diego Souza
Your javascript code is outside the tag
<script></script>
?– Filipe Oliveira
div are following the first div yes the code ta inside the javascript
– usersantos