Hey all,

I'm trying to disable radio button based on a selection. These functions 
are called from an onClick.
Any reason why they'd work in Firefox and not in IE 7?



<script language="javascript" type="application/javascript">
    function disableOnPaidLeave(){
        document.form1.getElementById("pre_absent").disabled=true;
        document.form1.getElementById("alternative_week_id").disabled=true;
        document.form1.getElementById("pre_pretransplant").disabled=true;
        document.form1.getElementById("pre_pediatric_clinic").disabled=true;
       
        document.form1.getElementById("pre_absent_n").disabled=true;
        document.form1.getElementById("pre_pretransplant_n").disabled=true;
        
document.form1.getElementById("pre_pediatric_clinic_n").disabled=true;
    }
   
    function enableOnPaidLeave(){
        document.form1.getElementById("pre_absent").disabled=false;
        document.form1.getElementById("alternative_week_id").disabled=false;
        document.form1.getElementById("pre_pretransplant").disabled=false;
        
document.form1.getElementById("pre_pediatric_clinic").disabled=false;
       
        document.form1.getElementById("pre_absent_n").disabled=false;
        document.form1.getElementById("pre_pretransplant_n").disabled=false;
        
document.form1.getElementById("pre_pediatric_clinic_n").disabled=false;
    }
</script>

-- 
Scott Stewart
ColdFusion Developer

Office of Research Information Systems
Research &amp; Economic Development
University of North Carolina at Chapel Hill

Phone:(919)843-2408
Fax: (919)962-3600
Email: saste...@email.unc.edu



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317863
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to