skip to Main Content

I wrote a code to animate badge when the user click on a button, how to fix it? – Jquery

I wrote this hover the animation: animated slideIn doesn't trigger, while the console show notihing let getAddToCart = document.querySelectorAll('.addToCart'); let getCartBadge = document.querySelector('.cartBadge'); getAddToCart.forEach((item) => { item.addEventListener('click', function (e) { e.preventDefault(); console.log('clicked'); // animate the cartBadge getCartBadge.classList.add('animated', 'slideIn'); // other…

VIEW QUESTION

Javascript concatenate select and input values in a text box – Jquery

I'd like to concatenate several values from selects and input fields on a final input field that contain all the values. What I have until now is this: $('#chosen_a').change(function() { $('#ddlNames').val($('#chosen_a option:selected').data('id')); console.log($('#chosen_a option:selected').data('id')); }) <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <select name="criteria_title" id="chosen_a"…

VIEW QUESTION
Back To Top
Search