hello , i have main checkbox button . i want the function which do check all checkboxes inputs and at the same time when uncheck main check button it uncheck all checkboxes inputs

thanks