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:
- jQuery(document).ready(function() {
- jQuery('.cart-outer a').removeAttr('href');
- });
- jQuery(document).ready(function() {
- jQuery('#side-cart .close-me2').click(function(){
- var rightVal = -500;
- jQuery('#side-cart').animate({right: rightVal + 'px'}, {queue: false, duration: 500});
-
- jQuery('.cart-outer a').attr("href", "javascript:void(0)");
-
- jQuery('.cart-outer a').click(function(){
- var rightVal = 0;
- jQuery('#side-cart').animate({right: rightVal + 'px'}, {queue: false, duration: 500});
- });
-
- });
- });
- jQuery(window).load(function() {
- jQuery('.cart-outer a').attr("href", "javascript:void(0)");
- });
- jQuery(document).ready(function() {
- setTimeout(function() {
-
- jQuery('.cart-outer a').attr("href", "javascript:void(0)");
-
- }, 3000);
- });
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!