Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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
 
Shiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!