wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Checkbox validation - at least one selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Checkbox validation - at least one selected" Watch "Checkbox validation - at least one selected" New topic
Author

Checkbox validation - at least one selected

M sallu
Ranch Hand

Joined: Dec 13, 2009
Posts: 42
Hi, I have number of checkboxes and another checkbox for "Select All"

I want to check if the user has selected at least one checkbox. Need modification in javascript

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30146
    
150

Before getting to the JavaScript, you need to design the HTML. What are your checkboxes called? How do you identify each one? A number, a different name, an array? Show some more of the HTML.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

And be sure to use proper formatting and indentation in your code. Unformatted code s surprisingly hard to read.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
M sallu
Ranch Hand

Joined: Dec 13, 2009
Posts: 42
Done

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checkbox validation - at least one selected
 
Similar Threads
How to change the inner color of a CheckBox
checkbox
checkbox and select
Multiple Select box Problem
geting focus on radio button