<cfif condition1 EQ "">
<cfset checkedornot = "checked">
<cfset checkedornot = "">
<cfloop from="1" to="5" index="p">
<input type="checkbox" value="#p#" name="checkedValueGoing" id-"checkedValueGoing#p#" #checkedornot# onclick="getAll(#p#,this.form)" />
Now the above is working for all checkboxes and single checkbox also, i mean i can click on the global checkbox button and it will call the function i specified in the onClick event which will just check/uncheck the dependent checkboxes, the same function runs on single checbox selection also and it refershes the page, i had to do a refresh to capture the checkbox as a list and pass them to the DB
Now the issue, if i do the checked all and form gets submitted, the value of the checkboxes pass a comma separated list, so far so good!
now if i uncheck all the checkboxes and submits the form, the value goes as empty string, while i stiull want to capture the values of the unchecked checkboxes