• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find Checkboxes?

 
Krishna Srinivasan
Ranch Hand
Posts: 1872
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic