|
-
for loop in checkboxes js
Hello, How I can write the following code in a for loop?
if (theF.red.checked) {
cost += parseFloat(theF.red.value);
}
if (theF.yellow.checked) {
cost += parseFloat(theF.yellow.value);
}
if (theF.blue.checked) {
cost += parseFloat(theF.blue.value);
}
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks