TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-30-2010, 11:26 PM   #1 (permalink)
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Smile Decision Tree / Drill Down

Hello all, I have been working on a drill down menu / decision tree for a bit here with jQuery. I had an easy nice setup done, but it doesn't work the way I'd like it to 100%.

In any case. I am trying to just step through a list. For example:

HTML Code:
<h3>Is the Sky Blue?</h3>
<ul>

<li>YES
 <ul><li>What color of blue?</li></ul></li>

<li>NO
 <ul><li>If not blue, what color is it?</li></ul></li>

</ul>
When someone clicks on Yes, show the Next LI, if they click on No, show the next LI.

I have been trying, with jQuery something like this:
Code:
$('h3').click(function(){
	$(this).next('li').toggle('fast');
});
or
Code:
$('h3').click(function(){
	$('li',this).show();
});
...but cannot get just the next li to show. Any advice?
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a tree view from MySQL and PHP oscargodson General 3 12-10-2008 02:22 PM
Vector Palm Tree Graphics Set ETbyrne The Lounge 0 11-12-2008 08:05 PM
a decision has been made read for an update on the project codefreek TalkPHP Developer Team 9 07-02-2008 09:31 PM
Step by step tree menu Peuplarchie Absolute Beginners 1 06-06-2008 04:19 AM


All times are GMT. The time now is 02:27 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design