Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jmoponfire

  1. jmoponfire

    which.element.length undefined for length 1?

    Thanks chessbot. I'm using the same name for an arbritray number of multiple checkboxes because it is less complex in PHP to create my array of values after submit. I'm not really interested in the field names, just the values selected for a particular question. I'm dynamically creating...
  2. jmoponfire

    which.element.length undefined for length 1?

    Thanks for the suggestion, but the outcome is the same. which.Question_1.selectedIndex; is undefined whether the box is checked or not. Comment on which as a var name is noted also, thanks.
  3. jmoponfire

    which.element.length undefined for length 1?

    If I have a form, with one checkbox, why does the length attribute return a value of undefined? Also, why can't I access the zero'th element in a single checkbox as in: if(which.Question_1[0].checked)? To see how this is causing a problem for me: http://sacbands.com/testt.php or [code]...

Part and Inventory Search

Back
Top