I am encountering an issue with two radio buttons that I am trying to link together. The problem arises because they are located in two separate form
elements, causing them not to function as intended. It is important for the form
s to be utilized in Bootstrap in order to achieve the desired styling effect. Below is a snippet of the code in question:
<ul class="list-group">
<li class="list-group-item list-heading">Notification Display Options</li>
<li class="list-group-item">
<form class="form-inline" role="form">
<div class="radio">
<label>
<input type="radio" id="noti_display_time" name="noti_display"> <span trans="shownotificationfor">Shows for</span>
<div class="form-group">
<input id="show_noti_time" type="number" class="form-control" max="60" min="1" data-requires="noti_display_time">
</div> <span trans="seconds">seconds</span>
</label>
</div>
</form>
</li>
<li class="list-group-item">
<form class="form-inline" role="form">
<div class="radio">
<label>
<input type="radio" name="noti_display">Close manually
</label>
</div>
</form>
</li>
</ul>
If you wish to see the code in action, please visit: http://jsfiddle.net/DerekL/4YfB9/show (Note: Do not view it within the jsFiddle preview window as the style may vary based on window size)
I am seeking a solution to this issue without compromising the existing style. Any assistance would be greatly appreciated. Thank you.
As a last resort, I will consider utilizing JavaScript if there are no other viable options available.