JQuery Create Element

With JQuery, We can easily create different HTML elements and also insert them into components. Above structure is the basic HTML structure that contains the head and body. To use jquery in HTML code, we require jquery google CDN in head or body section. Step 1: So, first, insert the following CDN into head tag. […]

How to Copy File in Python

Python supports copying of source file into the destination file. Here i’ve described few methods to copy file in python. It is easier than other programming languages and easy to understand for the developer. We have to import some libraries and write a few lines of code. File Copy in Python There are 2 Methods […]

How to Force Download File Using PHP

Generally, we can download files directly by creating hyperlinks. But Images, PDFs, and Media files open in a browser rather than downloading. Force Download Files in PHP Sometimes, we need to force download files in the user’s browser for better user experience. However, there is no direct way to download files forcefully. The only way […]

How to Replace All Words in a String Using JavaScript

We can use the replace() function in JavaScript to replace all the given string words. JavaScript replace() Method replace() method searches for a specified word or value in the string and returns the output as a new string with replaced value. By default replace() method repaces just one value. So, we need to use the […]