Cache in JavaScript is a unique string which is appended in URL in the from of query string. It is not read generally server side and used purely to form of unique URL. For Ex-maple: /Scripts/foo.js?v=1 This is often used…
Category: Javascript
Array Destructuring in ES6: Enhance Your JavaScript Code
Array Destructuring assignment is a convenient syntax for extracting values from arrays or properties from objects into distinct variables. This shorter syntax enhances code readability and maintainability. There are two types of destructuring assignment expressions: array destructuring and object destructuring.…
Data Types in JavaScript
In programming, data types in Java script specify the type of data that a variable can hold. They define the operations that can be performed on the data and the way the data is stored in memory. Data types are…
JavaScript code embedded within a HTML file:
What is Java script ? JavaScript code is a versatile programming language primarily used for creating interactive effects within web browsers. It allows developers to manipulate elements on web pages, respond to user actions like clicks and keyboard input, and…
How TO – Remove a Property from an Object in JavaScript
JavaScript is the world’s most popular programming language. JavaScript is the programming language of the Web. JavaScript is easy to learn. In this simple tutorial we will learn to remove a property of a JavaScript object. A sample JavaScript object…
LocalStorage in JavaScript
LocalStorage is a type of web storage that allows JavaScript websites and apps to store and access data right in the browser with no expiration date. This means the data stored in the browser will persist even after the browser…
Dropzone Child elements are not clickable for upload
When attaching the .dropzone() object via jQuery, generally it does not allow you to click child elements and open the upload dialog.
How to prevent parent’s onclick event from firing when a child tag is clicked with jquery?
Generally, Javascript events bubble (listen) to the highest point in the DOM to which a click event had been attached. So even if you don’t have any other explicitly click-able elements in the div, every child element of the div…
Adding multiple Recaptcha and custom form validation with Ajax
It is possible to add multiple Google Recaptcha on single page. Here is an example of adding Google Recaptcha in two different forms and adding custom validation to them. This example illustrates using how response ids are created when rendering of…
Javascript random integer between two numbers
A very simple and useful method to find a random integer between two numbers. Found this simple javascript function to calculate random integer between two numbers or intervals. Posting here for a quick reference. Here it is: [javascript]function randMaxMin(min,max) { return…