Last active
April 24, 2020 15:25
-
-
Save landbryo/8e7199bf814646595f585794600b5a40 to your computer and use it in GitHub Desktop.
Hide registration row when clicked option is level 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).on('click', '#rcp_subscription_levels .rcp_level', function () { | |
var value = Number(this.value); | |
setTimeout(function () { | |
var levelId = 5; | |
var renewal = document.querySelector('.rcp_registration_total .rcp-renewal-date'); | |
if (null != renewal) { | |
if (levelId === value) { | |
renewal.style.display = 'none'; | |
} else { | |
renewal.style.display = 'table-row'; | |
} | |
} | |
}, 1000, value); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment