Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

karabas83

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

karabas83's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Всем привет. Есть задачка при клике на ссылку "В закладки", изменить класс i, но изменить не у всех классов, а только у id товара добавленного в закладки, на данный момент код такой: <div class="wishlist"> <script> $(".wishlist a").click(function(){ $('.wishlist i').removeClass('fa fa-heart-o'); $('.wishlist i').addClass('fa fa-heart'); }); </script> <i class="fa fa-heart-o"></i> <a onclick="addToWishList('<?php echo $product['product_id']; ?>');" title="В избранное"><span> В избранное</span></a></div> Можете подсказать, как реализовать?
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.