Skip to content

Instantly share code, notes, and snippets.

@gutenberghub
Last active December 17, 2022 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gutenberghub/fc1b94a464db70ddd6824f4105737897 to your computer and use it in GitHub Desktop.
Save gutenberghub/fc1b94a464db70ddd6824f4105737897 to your computer and use it in GitHub Desktop.
Toggle switch pricing tabel
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$( document ).ready(function() {
$('.group-two').hide();
$('.change-price').on('click',
function() {
$('.group-one, .group-two').toggle();
}
);
});
</script>
@idejniprojekt
Copy link

Hi,

when I paste JS code in my wordpress I get error notice "Parsing error: unexpected token <"
Any suggestion?

Kind, Daniel

@munirkamal
Copy link

Hey @idejniprojekt

Thanks for reporting the issue; I've just fixed and updated the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment