[Fixed]-Django Bootstrap Data Toggle Radio Buttons Not working

1👍

Your problem is the boostrap libraries: here you can find your updated jsfiddle.

The snippet:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>



<div class="btn-group" data-toggle="buttons">
    <label for="id_tool_loc_0" class="btn btn-primary">---------
        <input checked="checked" id="id_tool_loc_0" name="tool_loc" type="radio" value="">
    </label>
    <label for="id_tool_loc_1" class="btn btn-primary">T01
        <input id="id_tool_loc_1" name="tool_loc" type="radio" value="1">
    </label>
    <label for="id_tool_loc_2" class="btn btn-primary">T02
        <input id="id_tool_loc_2" name="tool_loc" type="radio" value="2">
    </label>
</div>

Leave a comment