Hi All,

i am trying to insert checkbox value into a database but it seems giving me 
only one state "0" when trying to capture the value in CF.

Here is my CF  code where i am trying to capture the check box value :

<cfloop from=1 to=#ii# index="i">
 <cfoutput>
#FORM["Status#i#11"]#
 </cfoutput>

</cfloop>


Here is my JavaScript code :


Status = document.createElement( 'INPUT' );
Status.id = 'id' + elementid +  (ColumnElement+10);
Status.type='CheckBox'; 
Status.setAttribute('name','Status'+ elementid + (ColumnElement+10));
         if ( Status.checked == false)
                {
                Status.value='0';
                } 
                else 
                {       
                Status.value='1';
                }
         
        

Not sure what i missed .. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5489
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to