• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

else condition is not working, for unchecked checkbox

 
sanidhya kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see the line number 40, it is not getting executed
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34207
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHen you add System.out.println("check"), does it always print out "on"? Even if the checkbox isn't checked. If so, show the line of HTML that goes with that checkbox.
 
sanidhya kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, problem got resolved.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic