Sha256: c815698c95bd89bb32edd9a7cdf803e5cd12bac640201acd5ae754055cbe2058
Contents?: true
Size: 983 Bytes
Versions: 23
Compression:
Stored size: 983 Bytes
Contents
$(function() { if ($('#country_based').is(':checked')) { show_country(); } else { show_state(); } $('#country_based').click(function() { show_country();} ); $('#state_based').click(function() { show_state();} ); }) var show_country = function() { $('#state_members :input').each(function() { $(this).prop("disabled", true); }) $('#state_members').hide(); $('#zone_members :input').each(function() { $(this).prop("disabled", true); }) $('#zone_members').hide(); $('#country_members :input').each(function() { $(this).prop("disabled", false); }) $('#country_members').show(); }; var show_state = function() { $('#country_members :input').each(function() { $(this).prop("disabled", true); }) $('#country_members').hide(); $('#zone_members :input').each(function() { $(this).prop("disabled", true); }) $('#zone_members').hide(); $('#state_members :input').each(function() { $(this).prop("disabled", false); }) $('#state_members').show(); };
Version data entries
23 entries across 23 versions & 1 rubygems