skip to Main Content

Enable and Disable Checkbox Group for Multiple and Single Selection – Jquery

I am trying to write a function to call for enabling only single checkbox to select or enable multiple selection. MultipleCheckbox(0): allow only single selection. MultipleCheckbox(1): allow multiple selection. function MultipleCheckbox(elem){ if (elem ==0){ $('input[type="checkbox"]').on('change', function() { $('input[type="checkbox"]').not(this).prop('checked', false); });…

VIEW QUESTION
Back To Top
Search