$((function(){$(document).on("change","#type",(function(e){"rent"===$(e.currentTarget).val()?$("#period").closest(".period-form-group").removeClass("hidden").fadeIn():$("#period").closest(".period-form-group").addClass("hidden").fadeOut()})),$(document).on("change","#never_expired",(function(e){!0===$(e.currentTarget).is(":checked")?$("#auto_renew").closest(".auto-renew-form-group").addClass("hidden").fadeOut():$("#auto_renew").closest(".auto-renew-form-group").removeClass("hidden").fadeIn()}))}));