skip to Main Content

jQuery.post() not found

I am trying to create a shopping cart. I have a function to add products in the cart : jQuery('#shop-add-btn').click(function () { modal.style.display = "block"; var Product = { idProduct: jQuery(this).data('idproduct'), name: jQuery(this).data('nameproduct'), quantity: jQuery("#quantity").val(), price: jQuery(this).data('price'), poids: jQuery(this).data('poids') };…

VIEW QUESTION

JQuery – removeClass inactive

I have a function that moves buttons by adding css to the button using JQuery. My code looks like this function btnToggle() { $('.btnClass').addClass('active'); if ($('.btnClass').hasClass('active')) { $('.btnClass').css('margin-right', '250px'); } else { $('.btnClass').removeClass('active'); } } .btnClass { background: aqua; position:…

VIEW QUESTION

How can I parse URL from a string with jQuery?

I hope to get URL from a string, how can I do it with jQuery ? For example Source: AAA http://www.google.com/ Target: http://www.google.com/ Source : http://www.msn.com/ This is a comment Target: http://www.msn.com/ Source : BB http://www.twitter.com/ Good site Target: http://www.twitter.com/…

VIEW QUESTION
Back To Top
Search