85
rated 0 times
[
88]
[
3]
/ answers: 1 / hits: 13932
/ 3 Years ago, tue, october 26, 2021, 12:00:00
i am showing sub menu by on Hover in tailwind css,
How can i achieve exact same functionality by doing onclick event instead of on hover.
CODE:
<div class="group">
<span class="font-bold text-gray-700"> Admission</span>
<div class=" hidden group-hover:block bg-white w-auto">
<div class="p-3 hover:bg-gray-200 ">
Admission Process
</div>
<div class="p-3 hover:bg-gray-200"">
option 1
</div>
<div class="p-3 hover:bg-gray-200"">
option 2
</div>
</div>
</div>
is there a way to do using only tailwind css or js?
More From » css