How to merge arrays in JavaScript

How do you merge two arrays in JavaScript/jQuery? Method 1: Traditional or simple way – using loop Iterating on one of two arrays, get each element and append it into…

Using JavaScript console better

The console object provides access to the debugging console (e.g., the Web console in Firefox). The specifics of how it works vary from browser to browser or server runtimes (Node.js, for example), but there…

How to Validate Min and Max Length of Input Field using jQuery

Using minlength and maxlength attributes of HTML5, you can manage the number of characters allowed to be entered into the input fields. But if you want to show a custom…

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…