Limit Textfield Input
DHTML textfield limiter that uses javascript in an unobstrusive manner. All code is seperated from the HTML.
First off lets look at the straightforward HTML file. We set up a form to hold our input fields, only the 'textarea' is used in this example.
Here is the Html File which has the form we will use.

| Hits: |
106 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Advanced Textarea Expand - How to make an advaned textarea expand with animation
Well in this tutorial you will learn how to make an advanced textarea expand script, with animation!
Ok, lets start, first of all, lets define some variables.

| Hits: |
125 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Button enlarging/reducing textboxes using JS
In this tutorial, you'll learn how to make a cute little button expanding a textbox by a desired number of columns. This primarily involves javascript and it's pretty easy to understand. This feature can be very useful for things like forums and article writing as the content can vary in length quite a lot. Here is a screenshot of its actual use (in the forums):

| Hits: |
81 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Change Textarea Size - Learn how to change textarea's size with a click!
Well in this simple tutorial i will teach you how to change a textarea size.
First of all we make the function, we need the id, the columns, and the rows.

| Hits: |
272 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Check and Uncheck
Well this srcipt will check all the checkboxes
In javascript, we can read the elements by the order they are shown, for example, to access a check box, we have to make
window.document.form.element
we dont need to specify window, javascript defines it alone.
To select forms, and forms elements, we can call them with their name or id, or by arrays.
When the page is load, the browser organize all the forms and elements as arrays.
So, we can access
document.form[0].element[0]
Remem

| Hits: |
90 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Form Validation the easy way - figure it out using the basics, no fancy arrays
When working with important script that need certain form to be filled out, javascript is a quick alternative to ensure that the defined fields are filled out. So, lets use this form as an example:
Everything is basic xhtml, just take note on the onSubmit attribute. This is a javascript attribute made specifically for forms. In this attribute, we have return validate(this);, this returns the result from the function validate() and inside parenthesis we have our variable. Our variable happens

| Hits: |
53 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Recall Form values script II - Allow your forms to recall form data
You've probably seen this feature inside the comment forms of blogs, where a checkbox lets you specify whether to remember the values of certain text fields and recall them later. Well, this script adds such a feature to any form! The script operates like so:
* Remembers and recalls any form's text field(s) globally, so the values are persisted across the same form anywhere on your site. JavaScript cookies are used so store the values for a default period of 180 days.
* Works with forms that

| Hits: |
54 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Form field Progress Bar - Let users know how much they have left to type
Similar in function to Form Field Limiter, this script allows you to restrict the number of characters inside a form element (ie: textarea) while displaying a progress bar on the remaining characters beneath it. Very cool, and works in IE4+, NS6+, and Opera 7+.

| Hits: |
46 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Textarea Maxlength Script - Extending your textarea with a maxlength attribute
This is a simple but effective script for extending your textarea with a maxlength attribute, so the user's input cannot exceed a certain number of characters. Works with any number of textareas on the page.

| Hits: |
57 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Check for Empty Form Fields with Javascript
So you've just created a new HTML form and you want to check the results of a user's entry before sending it off to be processed. You've decided that invoking your server to check the form is too much of a hassle. Where do you turn to now? JAVASCRIPT. With the power of Javascript on your side, you can check forms without calling your server to do so. This example will show you how to check for empty fields and return an error message on the discovery on an empty field.

| Hits: |
129 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Focus on the next form field after using a Select box
This demonstrates how to change the focus to the next form field after making a selection from a select box.
It is entirely automated. The JavaScript iterates through every form tag on the page, and then through each element within each form. When it finds an input or select box it adds a reference to an array.
It also adds the onchange function to the select boxes. When a selection is made, "next()" is called, which iterates through the array to find the select box, and then if there is a

| Hits: |
34 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
JavaScript Form Field Validation - Validate an entire form with a single functio
Form validation is tedious and boring (and there's the tired old argument that it's pointless with javascript), but with the method below you can validate the entire form with a single function.
There are ways to avoid javascript form validation, but the general public isn't going to avoid it, which makes it useful and a nice way to reduce unnecessary overhead on the server. You should still validate data with your server-side before actually doing anything with it though.
This function it

| Hits: |
42 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Adding form elements dynamically
The best thing JavaScript can be used for is to increase functionality. And one simple way to do that is when you've got a form that can have a variable number of rows, and you want the user to select "show 5", "show 10" or whatever, without posting back to the server and making an extra round trip.
This code demonstrates a simple form for names and email addresses, with a select box to determine how many rows of fields there should be. The select box's onchange function either adds or remove

| Hits: |
33 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
A Select Box and Optional Input Field
Sometimes you'll want to present your user with a select box (drop down list) and also provide them the option to enter a text value. This is a simple javascript method of doing so, including determining which method has been used.
The css display attribute is toggled on the text box so it is only available when a specific option has been selected.

| Hits: |
27 |
Platforms: |
Windows |
| Ratings: |
|
Last Updated: |
2006-07-19 |
Change form options - Change the options a user can see in a form
This tutorial will demonstrate how to use JavaScript to hide/switch the display of a form/fieldset using the onClick feature. If you find any "browser related" problems with this, or just any other kinds of errors, post in the tutorial help forums.
One thing you need to remember when going through this tutorial, I left out ALL of the