I have a query which gets the following values - company names and emp names. I display the results grouping on a company name.
<cfoutput query="emp" group="company_name">
<input type="checkbox" name="check" value="#company_name#">#company_name#
<cfoutput>
<input type="checkbox" name="checkbox" value="#employee_name#">#employee_name#
</cfoutput>
</cfoutput>
I have a select all button which checks all the checkboxes on a form.
My problem is if a group check box is checked how do I check the values in that group only.
For example if user checks company A checkbox than all the checkboxs of company A employees should be checked.
Thanks.
<cfoutput query="emp" group="company_name">
<input type="checkbox" name="check" value="#company_name#">#company_name#
<cfoutput>
<input type="checkbox" name="checkbox" value="#employee_name#">#employee_name#
</cfoutput>
</cfoutput>
I have a select all button which checks all the checkboxes on a form.
My problem is if a group check box is checked how do I check the values in that group only.
For example if user checks company A checkbox than all the checkboxs of company A employees should be checked.
Thanks.