Skip to content

Cant get jquery to work in Django+Tailwind #2601

Answered by simonswiss
metand-dotcom asked this question in Help
Discussion options

You must be logged in to vote

Hey @metand-dotcom 👋

Did you write some jQuery to toggle the navigation (on hamburger menu click) based on the following code comment?

<!--
  Profile dropdown panel, show/hide based on dropdown state.

  Entering: "transition ease-out duration-100"
    From: "transform opacity-0 scale-95"
    To: "transform opacity-100 scale-100"
  Leaving: "transition ease-in duration-75"
    From: "transform opacity-100 scale-100"
    To: "transform opacity-0 scale-95"
-->

You might need to add a custom class/id/data-attribute to the elements you want to target with jQuery. It's tricky to help without seeing a codebase, do you have an example repo somewhere?

If you don't like using jQuery, I can recomme…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@metand-dotcom
Comment options

Answer selected by metand-dotcom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants