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

JQuery sort table data except first and last tr

If I have the following table... <table role="presentation" data="regMultipleTable"> <tbody> <tr class="d-none"><td>hide</td><td>hide</td></tr> <tr><td class="d-none">item 1</td><td><font>zebra</font></td></tr> <tr><td class="d-none">item 2</td><td><font>ape</font></td></tr> <tr><td class="d-none">item 3</td><td><font>dog</font></td></tr> <tr class="border-none"><td></td><td><h3>other stuff</h3></td></tr> </tbody> </table> ...how come my following jQuery logic sorts all the <tr> elements? Should it not…

VIEW QUESTION
Back To Top
Search