How-to articles, tricks, and solutions about JAVASCRIPT
Read the tutorial and learn information about the method of reloading a page using JavaScript. Also, learn how to make the page be loaded automatically.
Read the tutorial and learn the how to make an HTTP GET request in JavaScript and make an asynchronous request and handle the response inside event handler.
Read this tutorial and learn the right ways of getting the data-id attribute using jQuery two methods. Also, learn more information about the two methods.
Read this JavaScript tutorial and learn several useful methods of copying array items into another array. Get to know which method to choose for your case.
Read this JavaScript tutorial and learn the accepted method of finding out the call stack. Get information about the obsolete method of getting the call.
Read the tutorial and learn the right way of checking a radio button with jQuery. Also, read how to handle with different versions of jQuery while checking.
The console.log() method outputs a message to the web console. Read the tutorial and learn the simplest method of putting a single or multiple styles to it.
Read this tutorial and learn several ways of removing style added with the .css() function with the help of jQuery. Choose the best method for your case.
Read this tutorial and learn about several methods of getting the value of the input textbox value without wrapping the input element inside a form element.
This tutorial provides you the method of getting the id of the element fired an event in jQuery. Read about the event.target property and this keyword.
Read this JavaScript tutorial and learn about the fastest methods of converting object into string. Read about JSON.stringify() and toString() methods.
Read this tutorial and learn about the simplest and fastest method of getting the current year a four-digit number using the Date object in JavaScript.
You can either loop through the arrays or convert them to string and then compare. This tutorial provides several fast methods of comparing two arrays.
This tutorial provides several methods of creating an Ajax submit form using jQuery easily. Read about the differences of the GET and POST HTTP methods.
This tutorial provides the method of checking whether the type of the variable is undefined. Read about the differences between undefined and “undefined”.
Read the tutorial and learn the methods of getting the value of the selected option in a select box using jQuery. Read about the text() and val() methods.
Read this tutorial and learn the method of removing empty elements from an Array. Also, read about removing falsy elements that include an empty string.
Read the tutorial and learn the methods of getting the last item in the array. Get to know the methods and their peculiarities to find the best solution.
Read this Angular.js snippet and get relevant information about the differences and as well as similarities between Angular-route and Angular-ui-router.
Read this JavaScript tutorial and get relevant information about the differences between null and undefined data types. Find out their similarities as well.
Read this JavaScript tutorial and get information concerning the problem of creating an Array that contains 1 through to N. Find two methods for solving it.
Read the tutorial and learn a simple method of adding days to JavaScript date with two inbuilt functions used for setting and getting the day of the month.
The <canvas> element helps drawing graphics on the fly via JavaScript. Read the tutorial and find the dos and don’ts of clearing the canvas for redrawing.
Read the tutorial and find out one of the methods of checking whether the element is visible after scrolling with jQuery. Also, find about utility function.
In JavaScript, there no any built-in method of shuffling a JavaScript array. Read this tutorial and learn what is the popular method of randomizing arrays.