Scroll to an element with jQuery   <script type=”text/javascript”> jQuery(“.downarrow-go-down”).click(function() { jQuery([document.documentElement, document.body]).animate({ scrollTop: jQuery(“#pricing”).offset().top }, 2000); }); </script> Source: https://stackoverflow.com/questions/6677035/scroll-to-an-element-with-jquery

JavaScript For Loop

May 13, 2022

<h2>JavaScript For Loop</h2> <p id=”demo”></p> <script> const cars = [“BMW”, “Volvo”, “Saab”, “Ford”, “Fiat”, “Audi”]; let text = “”; for (let i = 0; i… Read More →

Click the button to sort the table alphabetically, by name: Sort Name Country Berglunds snabbkop Sweden North/South UK Alfreds Futterkiste Germany Koniglich Essen Germany Magazzini… Read More →

prevent href redirect onclick with JavaScript Use – d.preventDefault();   jQuery(document).on(“click”,”.seestock”,function(e) { e.preventDefault(); //jQuery(‘> span .stockstatus’, this).html(‘Save’); var qty = jQuery(this).data(‘qty’); jQuery(this).html(qty); //alert(‘hello’); });