[jQuery] Re: get paragraph text from a ul

2008-11-01 Thread yoyoryu
i want my menu to be dynamic and i want some menu items to be expandable. i know that a will not work cause i have tried it out. but there has to be some way to get the p text of the li selected. i have tried some code but every li i click redirects to the page and if it has some submenu items th

[jQuery] get paragraph text from a ul

2008-10-31 Thread yoyoryu
i'm new to jquery and have a problem with a ul. i'm trying to get the value of p from the list can someone help me out? jquery-> $(".menu_item").click(function(){ if ($(this).('p').text = 'Home') { window.location.href="index.html";