• Post Reply Bookmark Topic Watch Topic
  • New Topic

Checkbox validation - at least one selected  RSS feed

 
M sallu
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66158
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And be sure to use proper formatting and indentation in your code. Unformatted code s surprisingly hard to read.
 
M sallu
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Done

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!