Forms

Results 1 - 20 of 26

Sort by:

Default Form Values with jQuery

Here's a useful jQuery snippet that clears the default values of form fields on focus and refills them if no text is entered. It uses the attribute called defaultValue which stores the original value of a form field.

  • Price: Free
  • Views: 17

Text Box Characters Counter - IE, Opera, FireFox, Netscape & Safari

In forms when using text boxes or text areas with limited character length (usually needed for forms that submit data to a database) it is always a good idea to tell the user how many characters they have remaining. The following example shows how you...
(show more)

(3.50 out of 5) from 16 Ratings

  • Price: Free
  • Views: 7,368

Accessing and validating forms using Javascript

If you're new to using JavaScript to access forms, this is the tutorial to read. You'll not only learn how to access forms, but validate them as well.

(3.53 out of 5) from 13 Ratings

  • Price: Free
  • Views: 13,116

How to pass values from one field to other fields using Javascript

One of the big questions people have is how they can pass values from fields to others fields.

(5.00 out of 5) from 1 Rating

  • Price: Free
  • Views: 2,261

Advanced JavaScript Cascading Form Values

Attached is an example of how to cascade form values from one row to another. Previously I showed how to apply JavaScript cascades to check boxes, in this example we add the same functionality to drop downs and to text boxes.

  • Price: Free
  • Views: 794

Validating a text box for numeric data

A simple javascript validation code to check the user input and allow numeric data and disallow invalid characters

(3.33 out of 5) from 9 Ratings

  • Price: Free
  • Views: 1,966

JavaScript Form Object

In this JavaScript Tutorial you will learn about JavaScript form object, properties of form object, action - elements[], encoding, length, method, name, target, button, checkbox, FileUpload, hidden, password, radio, reset, select, submit, text, textarea...
(show more)

(3.67 out of 5) from 3 Ratings

  • Price: Free
  • Views: 1,312

Simple WYSIWYG Editor

Creating a WYSIWYG textbox for your website is actually quite simple. Thanks to the html iframe component that contains the execCommand function, which enables us to access html tags in real time.

(4.67 out of 5) from 9 Ratings

  • Price: Free
  • Views: 5,020

Javascript Text Box Characters Counter

Here you have an example of how you can display and limit the number of characters an user can insert into an input or a textarea field.

(4.67 out of 5) from 9 Ratings

  • Price: Free
  • Views: 2,457

Set Focus to First Available Form Control

Sometimes it is necessary to set the focus to the first available form control. The problem is that complex web pages can contain multiple forms and each form individually can contain hidden or disabled elements and controls that cannot accept focus. In...
(show more)

  • Price: Free
  • Views: 1,120

JavaScript Form Validation

Any interactive web site has form input. If you run a validation of the user's form input before the form is submitted, there will be no wait time and redundant load on the server. "Bad data" are already filtered out when input is passed to the...
(show more)

(4.33 out of 5) from 3 Ratings

  • Price: Free
  • Views: 2,782

Form Object Tutorial

This tutorial is about accessing form objects of the 3 standard ways via JavaScript.

  • Price: Free
  • Views: 1,258

Ajax 'Suggest' box for HTML Forms

Tutorial explaining how to use Ajax (Asynchronous Javascript and XML) to create a drop-down 'suggest' box for form fields which updates as you type by querying the server in the background. Similar to the 'Google Suggest' application. Full tutorial,...
(show more)

(3.93 out of 5) from 30 Ratings

  • Price: Free
  • Views: 7,978

Changing Select element content on the fly

This tutorial explains how to change a select element's content using JavaScript, from adding new options to modifying and deleting them. It also shows how to create a 2 level interdependent select list.

(4.56 out of 5) from 9 Ratings

  • Price: Free
  • Views: 3,136

AJAX Tutorial - First AJAX form

In this article, I'll explain demonstrate the fundamental steps to creating an Ajax form. In this demo, there are two files, one is index_demo.php and the other is add_url_demo.php

(3.83 out of 5) from 6 Ratings

  • Price: Free
  • Views: 4,804

Resetting forms using an Image Button (IE4+ / NS4+)

In forms when using text boxes or text areas and check boxes you might need a reset button that is not the usual gray HTML button. For this you can use a small JavaScript function as given below. Note: This button will reset only text boxes,text areas...
(show more)

(4.00 out of 5) from 3 Ratings

  • Price: Free
  • Views: 3,392

Address Auto-Fill Ckeck Box

Javascript code that automatically fills in the address in all places needed on the page after just once entering it and selecting the check box.

(4.50 out of 5) from 6 Ratings

  • Price: Free
  • Views: 3,270

Submit1ce

Got a submissions form that you keep getting multiple submissions from? I've found that in most cases its because people are impatient and click the submit button repeatedly until they get a response. The unfortunate result is that you receive multiple...
(show more)

(3.91 out of 5) from 33 Ratings

  • Price: Free
  • Views: 3,661

JavaScript Form object explanation

Complete listing of the Form object of JavaScript and its properties/methods. Also includes additional pages describing objects beneath Form, such as TEXTAREA, SELECT etc.

  • Price: Free
  • Views: 1,399

Form Change Event (Dynamicaly change one form value while other is changed)

Let us say that we have a form with two select options. We want one to change when we change the value of other. Follow the steps to do it yourself

(3.89 out of 5) from 9 Ratings

  • Price: Free
  • Views: 4,764
<< previous
 ( 1 | 2next >>