How to build and render data in JSON format with Grails

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…

Event Delegation in jQuery

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…

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…

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

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…

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ế…

Working with css, images, and jQuery in CodeIgniter

I spent a lot of time for seeking an appropriate solution to use external stylesheets in CodeIgniter. If you are not patient, I think you will give up the racing.…

Create an image gallery with jQuery

Instead of visiting each images and reloading the page to load a new one, we can visit all images without reloading the page. The principle of this work sounds employed…

An Introduction to jQuery

To web developers, jQuery is considered as a fascinating JavaScript library that helps doing whatever they want with HTML elements. What is jQuery? According to the main page of jQuery…