This question is locked. New answers and comments are not allowed.
Problem:
It seems that TreeView's public function 'nodeCheck' doesn't work well.
In this function,there is a line which will set 'checked' and 'value' attributes' value of the checkbox,when variable 'isChecked' is true,everything is ok.On the contrary, I got the wrong attributes' value,and checkbox display status is checked.
Then I google it and fixed it.Here is the code:
Though I figured it out, I don't know why this happened.
Anybody help???
It seems that TreeView's public function 'nodeCheck' doesn't work well.
In this function,there is a line which will set 'checked' and 'value' attributes' value of the checkbox,when variable 'isChecked' is true,everything is ok.On the contrary, I got the wrong attributes' value,and checkbox display status is checked.
$checkboxHolder.find(':checkbox').attr({
checked:isChecked?'checked':'',
value:isChecked
});
checked:isChecked?'checked':'',
value:isChecked
});
$checkboxHolder.find(
':checkbox'
).attr(
'checked'
,isChecked).attr(
'value'
,isChecked);
Though I figured it out, I don't know why this happened.
Anybody help???