Javascript Archives - IndiThemes https://indithemes.com/category/javascript/ Wed, 09 Oct 2024 04:22:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://i0.wp.com/indithemes.com/wp-content/uploads/2024/04/cropped-favicon-1.png?fit=32%2C32&ssl=1 Javascript Archives - IndiThemes https://indithemes.com/category/javascript/ 32 32 179472603 How to Add Swiper Slider in WordPress Themes Without Plugins https://indithemes.com/how-to-add-swiper-slider-in-wordpress/ https://indithemes.com/how-to-add-swiper-slider-in-wordpress/#respond Wed, 09 Oct 2024 04:18:24 +0000 https://indithemes.com/?p=1883 Sliders are an important element of modern websites and play an important part in making the website appear more interactive and engaging. When it comes to sliders, there are many options available based on your requirement and expertise on working with third-party code and libraries. One such popular slider library is the SwiperJS Slider. It Read the full article...

The post How to Add Swiper Slider in WordPress Themes Without Plugins appeared first on IndiThemes.

]]>
https://indithemes.com/how-to-add-swiper-slider-in-wordpress/feed/ 0 1883
Toggling a Class in JavaScript – 3 Quick and Easy Ways https://indithemes.com/toggle-class-javascript-3-quick-ways/ https://indithemes.com/toggle-class-javascript-3-quick-ways/#respond Mon, 30 Sep 2024 19:55:29 +0000 https://indithemes.com/?p=1855 In JavaScript, manipulating the DOM is one of the most common processes through which developers modify the HTML document to change the display and in some cases, even functionality of pages in a browser. One of the key methods to manipulate the DOM is toggling a class of an element. In this article, we are Read the full article...

The post Toggling a Class in JavaScript – 3 Quick and Easy Ways appeared first on IndiThemes.

]]>
https://indithemes.com/toggle-class-javascript-3-quick-ways/feed/ 0 1855
How to Get All Unique Elements from an Array in JavaScript https://indithemes.com/how-to-get-unique-elements-from-array-javascript/ https://indithemes.com/how-to-get-unique-elements-from-array-javascript/#respond Tue, 24 Sep 2024 13:21:21 +0000 https://indithemes.com/?p=1789 Arrays are an important part of the JavaScript ecosystem. They are an important data type which is used to store data. There are a number of operations that can be performed on arrays. One of the most common operations is getting all the unique elements of an array. In this article, we take a look Read the full article...

The post How to Get All Unique Elements from an Array in JavaScript appeared first on IndiThemes.

]]>
https://indithemes.com/how-to-get-unique-elements-from-array-javascript/feed/ 0 1789
How to Remove a script Tag from HTML String in JavaScript https://indithemes.com/how-to-remove-a-script-tag-from-html-string-in-javascript/ https://indithemes.com/how-to-remove-a-script-tag-from-html-string-in-javascript/#respond Sun, 22 Sep 2024 03:46:04 +0000 https://indithemes.com/?p=1734 In modern web development, JavaScript is an integral part of the workflow. It is extensively used to provide interactivity, structure, API integration and even render the layouts. It’s added in an HTML page using the [crayon-69bc098f91322687640456-i/] tag. These script tags add JS code to our page. While [crayon-69bc098f91328992137760-i/]  tags can be added anywhere in a Read the full article...

The post How to Remove a script Tag from HTML String in JavaScript appeared first on IndiThemes.

]]>
https://indithemes.com/how-to-remove-a-script-tag-from-html-string-in-javascript/feed/ 0 1734
JavaScript Check if Key Exists in an Object – Simplified https://indithemes.com/javascript-check-if-key-exists/ https://indithemes.com/javascript-check-if-key-exists/#respond Tue, 13 Aug 2024 17:35:47 +0000 https://indithemes.com/?p=1619 Do you want to check if a Key exists in JavaScript? If you are learning JavaScript then you may already know checking a key within an object is a very common task. Especially if you are dealing with dynamic data structures. Whether you are validating user input or iterating through objects, understanding how to check Read the full article...

The post JavaScript Check if Key Exists in an Object – Simplified appeared first on IndiThemes.

]]>
https://indithemes.com/javascript-check-if-key-exists/feed/ 0 1619