Purchase Advertising On AWT
 Upload & Sell Your Software
 Upload & Sell Your eBook
 Enter The AWT Control Panel  Contact Applied Web Tools
 Sell Your eBook @ The Book Store  Password Troubles? Click Here!
Knowledge Center
Want to write for Applied Web Tools? Send your Writer's Query to
Editor@AppliedWebTools.net for details.
HTML
Reference
&
Tutorial
CSS
Reference
&
Tutorial
DOM
Reference
&
Tutorial
JavaScript
Reference
&
Tutorial
50+ Programming Examples
Use HTML, CSS, DOM & JavaScript Together
Misc. Essays & Documents
You'll Find Just About Anything In Here
50+ Web Page Constructions
Learn the Art of Using HTML, CSS, DOM & JavaScript Together
 Changing Background Colors
 Event Triggering With onLoad
 Disabling The Right Click
 DOM Driven Color Changing
 Switching Images
 innerHTML Attribute Access
 Change With innerHTML
 Changing Positions
 Change Position With onMouseMove
 Change Text Position
 Interactivity Skills
 Type-writing A Message
 Auto-changing Text Size
 Making Text Scroll
 Blinking Text
 Simple Form Authentication
 Change Background Color Of An INPUT
 Change Text Color Of An INPUT
 Change Background Image Of An INPUT
 Select All Checkboxes
 Select Color Of The Submit Button
 Change Text Color Of A Submit Button
 Insert Background Image To A Button
 Change Color Of Drop Down List
 Change Text Color Of A Drop Down List
 Change Color Of A TEXTAREA
 Change The Text Color Of A TEXTAREA
 Insert An Image Into A TEXTAREA
 Change The Size Of An Image
 Change The Source Of An Image
 Change The Position Of An Image
 Change The Background Image
 Moving Images Around The Page
 Drag & Drop An Image
 A Simple Image Viewer
 A Shaking Image
 A Digital Clock
 Drop Down List Link
 Top Drop Down Menu
 Always On Top Menu
 Inset Border Buttons
 A Description Generating Menu
 An Image Generating Menu
 A Horizontal Sliding Menu
 A Click Horizontal Sliding Menu
 Returning Cursor Co-ordinates
 Making Text Follow The Cursor
 Attaching An Image To The Cursor
select all checkboxes

This is a very useful procedure to implement, and is fairly simple to understand. In working with forms, you’ll no doubt need to include this in at least one page if you have a large amount of options to select or if you work with long lists. An example of this functionality is the Yahoo Mail option to select all email messages for deletion or moving. The checked=true value is used to check all of the check boxes within that one form. It is important to realize that this will work only if you’re using a single form (of any size). If you have more than one form to submit on the same page with this functionality you’ll have to provide an entirely separate checked=true statement within a different function.

<html>
<head>

<script type="text/javascript">
function makeCheck(thisForm) {
for (i = 0; i < thisForm.option.length; i++) {
thisForm.option[i].checked=true;
}
}

function makeUncheck(thisForm) {
for (i = 0; i < thisForm.option.length; i++) {
thisForm.option[i].checked=false;
}
}
</script>

</head>

<body>

<form name="form">
<input type="button" value="Check" onclick="makeCheck(this.form)">
<input type="button" value="Uncheck" onclick="makeUncheck(this.form)">
<input type="checkbox" name="option">Apples<br>
<input type="checkbox" name="option">Oranges<br>
<input type="checkbox" name="option">Bananas<br>
<input type="checkbox" name="option">Melons
</form>

</body>
</html>


You may use a type=submit button to check all boxes and submit at the same time if you like. This is usually used in the case of having trained employees who are using the form over many times on an Intranet or private Internet page. They know that the form will be submitted with all boxes being checked. An Internet page that the user visits only once shouldn’t have this functionality, as the user may not completely understand what just happened simply because they’ve never used that particular form before.
I do not employ cookies or tracking devices of any kind