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
$('#li-one-time-charges').click(function() {
console.log("li-one-time-charges clicked");
$('#subscriptions').slideToggle();
$('#one-time-charges').slideToggle();
$('#subscriptions').hide();
$('#one-time-charges').show();
});
$('#li-subscriptions').click(function() {
console.log("li-one-time-charges clicked");
$('#one-time-charges').slideToggle();
$('#subscriptions').slideToggle();
console.log("li-subscriptions clicked");
$('#one-time-charges').hide();
$('#subscriptions').show();
});
$('#one-time-charges').hide();
$('#subscriptions').show();
});
window.onload = function () {