More controlling form fields

Once you begin to use JavaScript you’ll find that a lot of what you end up scripting involves dealing with forms. Form submissions, validations, dynamically displaying fields and even disabling and enabling fields. The disabling and enabling part can be confusing so we’re going to cover how to deal with this subject with each type of form field: the textbox, radio button, checkbox, button and dropdown list.

 

I’ve covered this once before, but I wanted to take a different approach with this article and also show you how to deal with radio buttons and trigger field control with a dropdown menu.

$2.79
- OR -

Overview

Why would you want to disable form fields? A good example (and one we will use today) is a user account or permissions page. Often depending on who the user is when they access a control panel type page, you may want to disable some controls.

Reviews

Be the first to write a review

You must me logged in to write a review.