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();

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 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 self=this;