Use show/hide instead of toggle

This commit is contained in:
PCoder 2020-06-19 15:45:44 +05:30
parent c4e7f99202
commit 6b3ecfaff4

View file

@ -140,14 +140,17 @@ $(document).ready(function() {
// Toggle subscription and one-time payments div // Toggle subscription and one-time payments div
$('#li-one-time-charges').click(function() { $('#li-one-time-charges').click(function() {
console.log("li-one-time-charges clicked"); console.log("li-one-time-charges clicked");
$('#subscriptions').slideToggle(); $('#subscriptions').hide();
$('#one-time-charges').slideToggle(); $('#one-time-charges').show();
}); });
$('#li-subscriptions').click(function() { $('#li-subscriptions').click(function() {
console.log("li-one-time-charges clicked"); console.log("li-subscriptions clicked");
$('#one-time-charges').slideToggle(); $('#one-time-charges').hide();
$('#subscriptions').slideToggle(); $('#subscriptions').show();
}); });
$('#one-time-charges').hide();
$('#subscriptions').show();
}); });
window.onload = function () { window.onload = function () {