LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Java script checking form elements

Posted 02-03-2009 at 02:53 PM by 3vra

I understand your code but it does'nt do what I want it require.

Quote:
Originally Posted by gn000we View Post
You have nested the ifs!

Also it helps to indent the code too, so you can see what it's doing.

(a cutting from your code, indented)
Code:
for(i=0; i<document.inventory_sys.elements.length; i++)
{
   if (document.inventory_sys.elements[i].type == "checkbox")
   {
      if (document.inventory_sys.elements[i].checked == false)
      {
...
Member
Posted in Uncategorized
Views 1928 Comments 0 3vra is offline

  



All times are GMT -5. The time now is 08:08 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration