How-to articles, tricks, and solutions about JAVASCRIPT

How to Remove All the Child Elements of a DOM Node in JavaScript

Read this JavaScript tutorial and learn several simple and fast methods that are used for removing all the child elements of the DOM node with examples.

How to Select and Manipulate CSS pseudo-elements using jQuery

Read this tutorial and learn the simplest and fastest way of selecting and manipulating the CSS pseudo elements using some jQuery and CSS methods.

How to Add and Remove Multiple or Single Select Options using jQuery

Read this tutorial and learn how you can remove multiple options or a specific option in the select list using some interesting and useful jQuery methods.

How to Convert a Float Number to Whole Number in JavaScript

In this tutorial, you will read and learn detailed information about the methods used for converting a float number to a whole number with lots of examples.

How to Manage a Redirect Request after a jQuery Ajax Call

In this JavaScript tutorial, you will read and learn detailed information about the method used for managing a redirect request after a jQuery Ajax call.

How to Replace a Character at a Particular Index in JavaScript

In this tutorial, you will read and learn detailed information about methods that are used to replace a character at a particular index in JavaScript.

How to Check and Uncheck Checkbox with JavaScript and jQuery

In this tutorial, you will read and learn about several JavaScript and jQuery methods for checking and unchecking a checkbox. Choose the best one for you.

How to Move an Array Element from One Array Position to Another

In this JavaScript tutorial, you will read and learn information about an easy insert strategy method of moving the array element to another position.

How to Sort JavaScript Object by Key

In this JavaScript tutorial, you will read and learn information about a functional method of sorting an object by key supported by all major browsers.

How to Check if Function Exists in JavaScript

In this tutorial, you will read and learn information about the two methods of checking whether a function exists in JavaScript or it has not been defined.

How to Distinguish Between Left and Right Mouse Click with jQuery

In this tutorial, you will read and learn useful information about the fastest method of distinguishing between left and right mouse click with jQuery.

How to Reset File Input with jQuery

In this tutorial, you will read and learn useful information about the fastest method of resetting a file input by using some HTML and jQuery methods.

How to Convert a JavaScript Date to UTC

In this tutorial, you will read and learn useful information about the right way of converting a JavaScript Date to the Coordinated Universal Time standard.

How to Change Selected Value of a Drop-Down List Using jQuery

In this tutorial, you will read and learn about jQuery methods that are used to change the selected value of a drop-down list via its text description.

How to List the Properties of a JavaScript Object

Read this tutorial and learn useful information about the two popular built-in methods that are used for listing the properties of the object in JavaScript.

How to Pass a Parameter to a setTimeout() Callback

Read this JavaScript tutorial and learn the right way of passing a parameter to a setTimeout() callback. Also, get information about function binding.

How to Remove Text from String

Read this JavaScript tutorial and learn useful information about several easy and fast built-in methods that are used for removing the text from a string.

How to Format a Number with Two Decimals in JavaScript

Read this JavaScript tutorial and learn useful information about several easy built-in methods that are used for formatting the number with two decimals.

How to Convert String to Title Case with JavaScript

Read this JavaScript tutorial and learn information about the combinations of methods that make it possible to convert the string to title case easily.

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 Check If an Element Contains a Class in JavaScript

Read this tutorial and learn valuable information about the multiple methods that are used for checking if the element contains a class in JavaScript.

How to Remove Spaces From String

Read this JavaScript tutorial and learn several methods that are used to remove spaces from a string. Also, know which is the fastest method to choose.

How to Convert RGB to Hex and Vice Versa

Read this tutorial and learn several methods that are used for converting the RGB value to Hexadecimal value easily with the help of JavaScript function.

How to Count String Occurrence in String

Read this tutorial and learn several useful methods that are used to count the string occurrence in a string. Choose one of the working methods for you.

How to Get the Client Timezone Offset in JavaScript

Read this tutorial and learn several useful methods that are used to detect the client timezone offset in JavaScript easily. Choose the best one for you.