This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to find Checkboxes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to find Checkboxes?" Watch "How to find Checkboxes?" New topic
Author

How to find Checkboxes?

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

I want to iterate the checkboxes in form?
Is there any way to find the checkboxes in a form. like getting number of checkboxes in the form.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
You can find many examples on the web, but here goes.

Using normal JavaScript (NB: I have not run this code):


Using jQuery:

More info at http://docs.jquery.com/Selectors


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find Checkboxes?