Re: [jQuery] DD's got a problem

2006-09-30 Thread Blair McKenzie
>From what I understand of the _expression_ handling code, this would require hard coding and not just a new selector. P could try using this instead (with some tweaking :) ):$(document).ready(function() {        $('#foo dt').click(function() {                var show=false;                var

Re: [jQuery] DD's got a problem

2006-09-30 Thread Jörn Zaefferer
Webunity | Gilles van den Hoven schrieb: > Use this code instead: > > $(document).ready(function() { > $('#foo').find('dd').hide().end().find('dt').click(function() { > $(this).find('dd').each(function() { > if ($(this).is(':visible')) { >

Re: [jQuery] DD's got a problem

2006-09-30 Thread Webunity | Gilles van den Hoven
Use this code instead: $(document).ready(function() { $('#foo').find('dd').hide().end().find('dt').click(function() { $(this).find('dd').each(function() { if ($(this).is(':visible')) { $(this).slideUp();

[jQuery] DD's got a problem

2006-09-30 Thread Philippe Auriol
Hello, reading some tutorials and trying to use them I have a problem with one of them : I've a list of dl, dt, dd like this : Foo My foo text Some more foo text I use this function in my header : $(document).ready(function() { $('#foo').find('dd').hide().end().find('dt').click(fun