Advertisement
danine1

toggleclass

Mar 7th, 2022
2,426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.73 KB | None | 0 0
  1.   <script>
  2.       $(document).ready(function () {
  3.         $(".rustlerhover-col-1").hover(function () {
  4.           $(this).toggleClass("box-hover");
  5.         });
  6.         $(".rustlerhover-col-2").hover(function () {
  7.           $(this).toggleClass("box-hover");
  8.         });
  9.         $(".rustlerhover-col-3").hover(function () {
  10.           $(this).toggleClass("box-hover");
  11.         });
  12.         $(".rustlerhover-col-4").hover(function () {
  13.           $(this).toggleClass("box-hover");
  14.         });
  15.         $(".rustlerhover-col-5").hover(function () {
  16.           $(this).toggleClass("box-hover");
  17.         });
  18.         $(".rustlerhover-col-6").hover(function () {
  19.           $(this).toggleClass("box-hover");
  20.         });
  21.       });
  22.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement