Thank u, Shawn,

 

While waiting for any solution, I found that livequery can help me in this
situation.

 

Again, thanks for your support, Shawn :-)

 

bowlkhin

 

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shawn
Sent: 10 Tháng Mười Một 2008 10:37 SA
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [HELP] How do I get attribute's value of selected node
?

 

Need a little more detail. How are you selecting a node? 

If I assume for a moment you have a class called "myClass" on the
nodes/elements that can be selected, and that you are selecting these nodes
by clicking on them, then you can get the ID like this:

$(".myClass").click( function () {

var theID = $(this).attr("id");

// ... do something with the id ....

});

You can get ANY attribute using the .attr() method.

HTH

Shawn

On Sunday 09 November 2008 19:30:45 Pham Anh Tuan wrote:

> Hi all,

> 

> I'm stucking in this trouble about 2 hours T___T ....

> 

> Because I have to get data from server by ID of selected node, and till
now

> I found no way to get it :(

> 

> Plz help and show me how to get the value of ID Atrribute of selected node

> in JQuery TreeView?

> 

> Thanks for reading,

> 

> bowlkhin

Reply via email to