Hi, I have a treeView and a script which allow me to select the 3 first node by default when the parent is selected, and I can select other nodes manually, But if I uncheck the parent, only the 3 first nodes are unchecked. What should I do to uncheck them
using the script?
here's my script:
<script language="javascript" type="text/javascript">
function OnTreeClick(evt) {
var src = window.event != window.undefined ? window.event.srcElement : evt.target;
var isChkBoxClick = (src.tagName.toLowerCase() == "input" && src.type == "checkbox");
if (isChkBoxClick) {
var parentTable = GetParentByTagName("table", src);
var nxtSibling = parentTable.nextSibling;
if (nxtSibling && nxtSibling.nodeType == 1)//check if nxt sibling is not null & is an element node
{
...
Go to the complete details ...