You are here: Home » All Posts » Archives for reference

reference

JavaScript Form Validation Script: More features

HTML Forms

This is in continuation of the JavaScript Form Validation script in this page. In this page, we will see some of the advanced features of the script. Showing all the form validation errors together in a message box If you want to show all the error messages together, then just call the EnableMsgsTogether() function as […]

Read the full article →

JavaScript Form Validation : quick and easy!

HTML Forms

Using client side JavaScript is an efficient way to validate the user input in web forms. When there are many fields in the form, the JavaScript validation becomes too complex. The JavaScript class presented here makes the form validations many times easier.

Read the full article →

How to Submit a Form Using JavaScript

Javascript Form Handling

Generally, a form is submitted when the user presses a submit button. However, sometimes, you may need to submit the form programmatically using JavaScript. JavaScript provides the form object that contains the submit() method. Use the ‘id’ of the form to get the form object. For example, if the name of your form is ‘myform’, […]

Read the full article →

Using JavaScript to reset or clear a form

Javascript Form Handling

Using an HTML ‘Reset’ button is an easy way to reset all form fields to their default values. For instance, the code snippet below shows an <input> field of type “reset”, which on being clicked resets all the form fields:

Read the full article →

Using JavaScript to access form objects when there are multiple forms

Javascript Form Handling

In order to access a form through JavaScript, we need to obtain a reference to the form object. One obvious way to approach, is to use the getElementById method. For instance, if we had a form with the id attribute “subscribe_frm”, we could access the form in this way: However, this approach has the limitation […]

Read the full article →

How to get the value of a form element : check box and radio button

Javascript Form Handling

This is the third article in the getting form element values using JavaScript series. In this article we will see how to get the value of check box and radio button. Getting a radio element and it’s checked value

Read the full article →

How to get the value of a form element : Drop downs and lists

Javascript Form Handling

This article is in continuation of getting form element values using JavaScript series. Drop down list

Read the full article →

How to get the value of a form element using JavaScript

Javascript Form Handling

Please refer article: how to get JavaScript form object for information on getting a reference to the form object. In this article we demonstrate the use of JavaScript for accessing the values of form elements. Later, we will demonstrate all the concepts using a real world example.

Read the full article →

The HTML Form Submit Button

HTML Forms

The basics of an HTML form submit button is discussed first in this article, moving towards more advanced topics like multiple submit buttons.

Read the full article →