1) Check/Uncheck all checkboxes on click of checkbox in the header. 2) The checkbox in the header shud be unchecked, if any of the checkboxes is deslected. 3) If any of the checkbox is disabled, it shud not be checked. 4) It shud function as mentioned above even if there is just one row of checkbox in the table
The function i've pasted above is catering all the needs, except one issue with this func. If i've check box anywhere else on the page not belonging to the table, then also it is getting checked.