Hello again Tony. How would I take your below example and use it to
"disable" select boxes, textareas, radio buttons and checkboxes? Thanks, Che

-----Original Message-----
From: Tony Bentley [mailto:t...@tonybentley.com] 
Sent: Tuesday, October 13, 2009 11:32 AM
To: cf-talk
Subject: Re: Looking for jQuery Form Help...

<input type="radio" onclick="showHide(true)" value="true"
name="UseDifferentShippingAddress"> Disable
<input type="radio" onclick="showHide(false)" value="true"
name="UseDifferentShippingAddress" checked="checked"> Enable

<div id="DifferentShippingAddress" > <input name="shippingaddress"
disabled="true"  /></div> 

<script>
function showHide(bool){ 
        if(bool)
        { 
                
                $("input[name=shippingaddress]").attr("disabled",true);
        }
        else{ 
                
                $("input[name=shippingaddress]").attr("disabled",false);
        }
} 

</script> 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327151
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to