Sometimes, we want to remove zero-width space characters from a JavaScript string. In this article,…
Month: April 2022
Sometimes, we want to pass additional data via custom events in JavaScript. In this article,…
Sometimes, we want to disable related videos with the Youtube JavaScript API. In this article,…
Sometimes, we want to properly unload or destroy an HTML element with JavaScript. In this…
Sometimes, we want to find the first scrollable parent element with JavaScript. In this article,…
Sometimes, we want to sort divs in JavaScript based on data-sort attribute values. In this…
Sometimes, we want to create a JavaScript setInterval callback function that clears itself. In this…
Sometimes, we want to clear a drop-down list with JavaScript. In this article, we’ll look…
Sometimes, we want to handle click events on charts in Chart.js and JavaScript. In this…
Sometimes, we want to remove whitespaces from the start and end of a string with…