jquery - Javascript: Multiple buttons, 1 class, cannot use ids. Pressing 1 button changes THEM ALL -
i hoping can please me out here. i've been struggling 3 days. :) i new wordpress-woocommerce & php, theme using not show "signs" when item added cart ajax cart. not programming, created javascript try , conquer issue. unfortunately, right if click 1 button, buttons change. i code apply button actively being clicked. the main criteria: the buttons cannot have separate ids. must use class alone buttons dynamically generated each product, , number of products-per-page unpredictable something like, "onclick="this.innerhtml='hi stack!'" cannot used think (it breaks category page) this pen of have far including html, css, , js: http://codepen.io/xkurohatox/pen/enbmkb html <a href="#" class="button add_to_cart_button product_type_simple added" onclick="birds()">add cart</a> <a href="#" class="button add_to_cart_button product_type_simple added" onclick="bird...