JavaScript Tutorial

AngularJS File Preview before Upload

Submitted by nurhodelta_17 on
This tutorial tackles on how to create a preview before upload in Angular JS. Preview is useful in application so that the user can check the file before he uploads it. In this tutorial, we're going to preview images using Angular Js. Angular JS is a javascript framework maintained by Google and is capable of creating Single-Page Applications.

AngularJS How to Create a Loader

Submitted by nurhodelta_17 on
This tutorial tackles on how to create a loader using Angular JS. Loaders are usually used in AJAX request before success occurs. You will also learn in this tutorial how to used $timeout of Angular JS which executes a command after a certain amount of time. Angular JS is a javascript framework maintained by Google and is capable of creating Single-Page Applications.

How to Add Class to a Div using JQuery

Submitted by nurhodelta_17 on
In this tutorial, I'm going to show you how to add and remove class to a div using jQuery. I've created three buttons each assigned a jQuery function. To start with, be sure to include jQuery on your file in order for the code to work.

Creating our Sample

We create our sample by creating three styles with assigned class each. We name this as "index.php".

How to Show/Hide Div Tag and Set Time out using JQuery

Submitted by nurhodelta_17 on
In this tutorial, I'm going to show you how to show/hide an area in the page without reloading the whole page using JQuery. I've also included in this tutorial a sample loader and a time out for the loader. Be sure to download the included sample gif and sample jquery.

Creating our Page

We create our page that includes our jquery. To create the page, open your HTML editor and paste the code below.

Simple Animated Text Using HTML/jQuery

Submitted by razormist on
In this tutorial we will create a Simple Animated Text Using jQuery. The jQuery is a fast, reliable kind of cross-platform javascript library. It is designed to simplify the traditional way of coding in javascript. So let's now do the coding. Creating the Mark Up To display the animated text will need to create the mark up language, to do that open any kind of text editor(notepad++, etc).

Creating A Very Simple Snake Game Using jQuery

Submitted by razormist on
In this tutorial we will try to make a very simple game called Snake. Snake is the most popular games in the late 1997 that comes from the Nokia 6110 Phone. This game become a favorite past time for all of us a long time ago, even our grand parents played this awesome game. So for today we will try to replicate the game, but this time we will create it through HTML & jQuery Script. Let's get started.