• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Select All

 
Grishma Dube
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I've written a javascript function, which is matching to my requirements. But this function doesn't work, if i have just a single box in list.

Pls help me in resolving in this problem. My code :


[ June 24, 2005: Message edited by: Grishma Dube ]
[ June 24, 2005: Message edited by: Grishma Dube ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when there is one checkbox, there is no array so you need to account for that. Here is an example below.



Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic