jQuery

jQuery (an improved version of JavaScript) is a lightweight, “write less, do more”, JavaScript library. The purpose of jQuery is to make it much easier to use JavaScript on your website. jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code. jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.

How to console.log in JSX

https://medium.com/javascript-in-plain-english/can-you-console-log-in-jsx-732f2ad46fe1

Read More »

How to change font size for text shown on arcs in D3Js

A bubble chart built in D3js with the forced layout algorithm

Have you ever asked how to change the size of the text displayed on elements of a D3JS plot so far? After a bit touch search and discovery, I believe this trick isn’t explicitly addressed in anywhere of D3JS documentation ...

Read More »

Checking existence of an element in an array with JavaScript

Checking existence of an element in an array with JavaScript

JavaScript is a loosely typed or a dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and reassigned) values of all types. In other words, everything in JavaScript is ...

Read More »

Understanding data type of dictionary in JavaScript

Understanding Dictionary in JavaScript

Dictionary is among the commonly used data structures in modern programming because of its benefits so that there has not been any frankly acceptable alternative. Therefore, in this post I am going to how you how to conceive this data ...

Read More »

How to build and render data in JSON format with Grails

The graphical representation of the illustrated application

Nowadays, an awful lot of web based applications are using JSON as a principal data to load and render information rapidly. While some applications store data into persistence volume as JSON string, the others still use relational databases as the ...

Read More »

Event Delegation in jQuery

What is Event Delegation?

Introduction Event delegation allows us to attach a single event listener, to a parent element, that will fire for all descendants matching a selector, whether those descendants exist now or are added in the future. Example For the remainder of ...

Read More »

Understanding Array in JavaScript

The array is one of the most commonly used data structures in computer programming. Basically, arrays are used to store multiple values in a single variable and then we retrieve its elements via an index. In this post, I would ...

Read More »

How to use console dot table in Console

This post shows how to use console.table to display a JSON data as the table in DevTool panel in Console tab

Read More »

How to get selected values of a group of checkboxes

We can use the jQuery :check  selector in combination with the each()  method so as to retrieve the values of all selected checkboxes in a group. The each() method used here simply iterates over all the checkboxes that have been ...

Read More »

How to check and uncheck a checkbox in jQuery

Làm với jQuery, nhiều bạn lập trình Front End chắc sẽ nắm rõ cách thức để viết hàm để bắt sự kiện check và uncheck một ô checkbox như thế nào. Tôi cược là các bạn có thể viết code ...

Read More »