Having a minor issue as a beginner, I am struggling to make buttons within a DIV clickable.
The top line consists of 5 buttons that work perfectly. When clicked, a 2nd row appears as expected, but for some reason, I can't click on them. What could be causing this?
To see the code and the issue in action, check out this link: https://jsfiddle.net/yello/1me8naee/
Here is the code snippet:
$(document).ready(function() {
$('#div1,#div2,#div3').hide();
$('#mod-7').click(function() {
$('#div1').show('fast');
$('#div2').hide('fast');
$('#div3').hide('fast');
});
// Other button click functions...
});
.segmented {
padding: 12px;
}
// CSS Styles...
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<nav class="segmented">
<input type="radio" name="mod-1" value="Organisation" id="mod-7">
<label for="mod-7">iPhone 7</label>
// Other input and label elements...
</nav>