Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Processing checkboxes data.

 
ashlan cooper
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there, I'm trying to process the data in form I created.
this is my code


but I have a question in retrieving the data from the checkboxes. How do I implement what the user has selected into the if statement.

Thanks in advance.
 
Marek Krzeminski
Greenhorn
Posts: 14
C++ Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd use JavaScript to process the user's response.

I use the jQuery framework to make writing JavaScript easier. With it you could do something like:

$( "form input:checkbox").each( function() {
//do what ever you need here per check box object
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic