Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

selectbooleancheckbox problem  RSS feed

 
Di Te
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends ive got this problem when i check a box which belongs to some object that has children then all checkboxes that belong to these children components must be checked either. And also when i uncheck one of child's checkbox the parent should be unchecked too i cant achieve this can someone please tell me how to do this?, thanks in advance.
 
Pete Nelson
Ranch Hand
Posts: 147
Debian Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this would likely take place on the client-side, you will probably need to use a client-side scripting language like JavaScript. You probably want to write custom JavaScript functions for your parent check box "onClick" event, and then set the children check box "checked" property.

Take a look at these resources:
http://www.w3schools.com/jsref/dom_obj_checkbox.asp
http://www.javascriptkit.com/jsref/checkbox.shtml
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!