JavaScript Tutorial

List Manipulator in Javascript

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a simple array re-orderer in Javascript. HTML: We are going to have a few HTML elements, here are the details... Textarea, named area, to contain the original list. Button, to reverse the list. Button, to sort the list a-z. Button, to sort the list z-a. Button, to randomise the list.

String Structure Checker in Javascript

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a structure checker for basic plain text in Javascript. Why? This tool would be used for ensuring data that is getting parsed through functions, databases and/or files is in the correct format and would not cause an error. This example tool is for removing multiple spaces at once, for example; ->Hi there! would be replaced with: ->Hi there! HTML: The HTML is basic HTML and just includes two textareas.

Count the Number of Checkbox with Check Value Using Javascript

Submitted by argie on
This tutorial will teach you on how to count the number of checkbox with checked value using Javascript. This is useful for thus programmer who is creating an online voting; by using this tutorial you can put a filter that allows only specific number of candidates to be vote in every position. To start this tutorial follow the steps bellow.

Creating Our Javascript

This step includes the creation of our Javascript that count the number of checkbox with check value.

Check And Unchecked All Checkbox Using Javascript

Submitted by argie on
This tutorial will help you on how to check and unchecked all checkbox in your form using javascript. This tutorial will be helpful to thus programmer who are developing a system that involves many checkbox with check and unchecked function. This feature is very useful also for user because they don't have to check the checkbox one by one.

Creating Quiz using JavaScript and HTML

Submitted by mehfuza on
The Quiz is created by designing it in HTML and Quiz Logic in JavaScript. It's a very basic and easy to implement Quiz Program. In the quiz program, one question is displayed at a time. It has two buttons next and previous. Answers are selected by checking radio buttons. Step 1: Design part: Form is created and <legend> tag is used to give title to the form. Inside the <fieldset> tag a table is created with id attribute.