Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

group checkbox html

<div>
    <input type="checkbox" />
    <input type="checkbox" />
    <input type="checkbox" />
</div>  
<div>
    <input type="checkbox" />
    <input type="checkbox" />
    <input type="checkbox" />
</div>   
<div>
    <input type="checkbox" />
    <input type="checkbox" />
    <input type="checkbox" />
</div>

#need Jquery
<script>
$('input[type="checkbox"]').on('change', function() {
   $(this).siblings('input[type="checkbox"]').prop('checked', false);
});
</scritp>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group #checkbox #html
ADD COMMENT
Topic
Name
2+8 =