How-to articles, tricks, and solutions about JAVASCRIPT

How to Strip HTML from a String in JavaScript

In this tutorial, you will find several approaches to strippingan HTML from a sting in JavaScript easily. Get the codes and explanations right away.

How to Subtract Days from Date in JavaScript

Read this tutorial and learn useful information about the instance methods of the Date object to help you subtract days from date in JavaScript easily.

How to Test If a Checkbox is Checked with jQuery

In this tutorial, you will find several jQuery methods that are used for testing whether the checkbox is checked based on the different versions you use.

How to Uncheck a Radio Button

Read this tutorial and learn useful information about the two jQuery and JavaScript solutions to unchecking a radio button, and choose the method you want.

How to Unset a JavaScript Variable

Read this JavaScript tutorial to know why you cannot delete the property that is created with var. Also, know in which cases you shouldn’t use the operator.

How to Use jQuery Selectors on Custom Data Attributes

In this tutorial, you will find useful information about the usage of jQuery selectors on custom data attributes. See examples and solve your problem.

How to Validate an E-mail Using JavaScript

Read this tutorial and learn a fast and easy solution to the issue of validating an email using JavaScript. Also, you will read about what the email is.

How to Write a Function that Accepts Any Number of Arguments in JavaScript

Read this JavaScript tutorial and find two easy methods of writing a function that will accept an indefinite number of arguments. See and try examples.

JavaScript: bind() vs apply() and call()

Read this JavaScript tutorial and learn about the main differences between the function prototype methods: bind(), call() and apply() and their usages.

Lazy load images with JavaScript

Read this tutorial and learn detailed information about some simple and fast techniques that are used to decrease image loading time using JavaScript.

The “right” JSON Date Format

Read the tutorial and learn the right methods of JSON date formatting with the help of JavaScript. Get to know information about ISO 8601 string format.

The Difference Between Angular-route and Angular-ui-router

Read this Angular.js snippet and get relevant information about the differences and as well as similarities between Angular-route and Angular-ui-router.

The Difference Between Null and Undefined in JavaScript

Read this JavaScript tutorial and get relevant information about the differences between null and undefined data types. Find out their similarities as well.

Waiting Until All jQuery Ajax Requests are Done

Read this tutorial and learn useful information about the jQuery function that waits and then executes the function when all the ajax requests resolve.

What is JavaScript Version of Sleep()

The tutorial provides information about JavaScript version of the sleep() which makes the function pause execution for specified seconds of milliseconds.

What is the Difference Between JSON.stringify and JSON.parse

Read this JavaScript tutorial and learn about two useful JSON methods that are used for converting JavaScript object into string and vice versa easily.

What is the Difference Between Substr and Substring

Read this JavaScript tutorial and learn about the two String manipulation functions, namely, substr() and substring() methods and difference between them.

Which are the Valid Values for the "id" Attribute

The “id” attribute defines a unique identifier for HTML elements. In this snippet, you can find out, which are its valid values for HTML, CSS, and Javascript.

4 5 6 7 8