Hi,
I have treeview like this
Parent1
child1
child2
child3
parent2
child21
child22
I want to select One of the child,when i select it childnode text should copy to label(don't want parent text in any case).Don't need post back also
So how to write Javascript code for that and and in which property i should call that.Bcz If i use onclick,while expanding parent node also function is executing.
can any one help on this?
Getting selected node Text with Javascript
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Suthish NairRank #92 · 22.8K reputationPosted Dec 10, 2010, 4:20 AM EST
check the alert section
function OnCheckBoxCheckChanged(evt) { alert(window.event.srcElement.nextSibling.innerText); alert(window.event.srcElement.nextSibling.innerHTML); alert(window.event.srcElement.nextSibling.outerText); var src = window.event != window.undefined ? window.event.srcElement : evt.target;lakshmi prasanna15 reputationPosted Dec 12, 2010, 7:15 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Dec 12, 2010, 8:11 PM EST
Then wait for more answers, someone will help you.
Remember to provide all informations in your thread next time.