var App_Form_PoleRequest = { init: function(groundlinePreparationId) { if (groundlinePreparationId) { $('#species-' + groundlinePreparationId).change(function() { if ($(this).is(':checked')) { $('#groundlinePreparation-label').children().slideDown(); $('#groundlinePreparation-element').slideDown(); $('#preservative-cca').attr('disabled', 'disabled'); } else { $('#groundlinePreparation-label').children().slideUp(); $('#groundlinePreparation-element').slideUp(); $('#preservative-cca').removeAttr('disabled'); } }).change(); } } };