He updated his code to include the document ready function. I was told to put this in my <head> tag, so I opened up html_header.php, and put it just after the <head>.
Still didn't work. I am pretty sure the issue lies somewhere other than the code itself.
PLEASE, PLEASE, PLEAAAASEE can someone assist!!
Code:<script type="text/javascript"> $(document).ready(function(){ //Initalize if($("#shippingAddress-checkbox").attr("checked") == "checked") { $("#shippingField input:not(#shippingAddress-checkbox), #shippingField select").attr("disabled", "disabled"); } else { $("#shippingField input:not(#shippingAddress-checkbox), #shippingField select").removeAttr("disabled"); } //Setup action $("#shippingAddress-checkbox").click(function(){ if($(this).attr("checked") == "checked") { $("#shippingField input:not(#shippingAddress-checkbox), #shippingField select").attr("disabled", "disabled"); } else { $("#shippingField input:not(#shippingAddress-checkbox), #shippingField select").removeAttr("disabled"); } }); }); </script>


Reply With Quote

