9th Oct 2020, 7:06 AM
Aȥɱαƚ Bααɠ
Aȥɱαƚ Bααɠ - avatar
6 Antworten
+ 6
You have not defined active class in css i.e. .active{ //Put you css here to perform on clicking the button }
9th Oct 2020, 8:19 AM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
+ 5
$(document).ready(function(){ $(".container").click(function(){ $("span").toggle(); }); });
9th Oct 2020, 8:20 AM
Vijay Thakur
Vijay Thakur - avatar
+ 5
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(".container").click(function(){ $("span").toggle(); }); }); </script>
9th Oct 2020, 8:24 AM
Vijay Thakur
Vijay Thakur - avatar
+ 4
.toggle.active { } Not .toggle:active { }
9th Oct 2020, 9:12 AM
ꪑꪗᦓꪻꫀ᥅꠸ꪮꪊᦓ
+ 3
Define active class
9th Oct 2020, 9:16 AM
C̾O̾D̾E̾R̾ ̾B̾O̾Y̾
C̾O̾D̾E̾R̾ ̾B̾O̾Y̾ - avatar
+ 2
Yeah fixed it thank you ☺️
9th Oct 2020, 8:04 PM
Aȥɱαƚ Bααɠ
Aȥɱαƚ Bααɠ - avatar