views:

22

answers:

1

Hi all,

I've just created a navigation tree for a help page using ASP.NET MVC and JQuery TreeView.

I can't figure out how to add links to the child nodes. What I want to do is add a property to my model (string linkText) so I can set it in each child node and turn them into links.

Inserting an a tag between li tags needs to be done in the jquery.treeview.js file, right?

I'd appreciate any help! Thank you!

+1  A: 

use .wrapInner() http://api.jquery.com/wrapInner/

Demo : http://jsfiddle.net/QSDxJ/

Ninja Dude
Thank you so much! I will try it and let you know if it worked.
Brady
I ended up hard coding links in (acceptable in this particular application). Thanks for the response though!
Brady