Add additional link using jQuery

Add additional link using jQuery

Hi there,

I have set a link in my WP-website using jquery which gets triggered by the event of "click". The jquery i used looks like this:

  1. jQuery(document).ready(function() {
  2. jQuery('.cart-outer a').removeAttr('href');
  3. });

  4. jQuery(document).ready(function() {
  5. jQuery('#side-cart .close-me2').click(function(){
  6. var rightVal = -500;
  7. jQuery('#side-cart').animate({right: rightVal + 'px'}, {queue: false, duration: 500});
  8. jQuery('.cart-outer a').attr("href", "javascript:void(0)");
  9. jQuery('.cart-outer a').click(function(){
  10. var rightVal = 0;
  11. jQuery('#side-cart').animate({right: rightVal + 'px'}, {queue: false, duration: 500});
  12. });
  13. });
  14. });

  15. jQuery(window).load(function() {
  16. jQuery('.cart-outer a').attr("href", "javascript:void(0)");
  17. });


  18. jQuery(document).ready(function() {
  19.     setTimeout(function() {
  20. jQuery('.cart-outer a').attr("href", "javascript:void(0)");
  21.     }, 3000);
  22. });

I want to add an additional element in this one (div class="cart-outer") but this shall NOT be triggered the same way and get an individual link. However I didn't find a solution yet. You can see the effect here (phone+tablet only): madwear.co (http: user: test ; pw: einszwei3)

Thanks for helping!