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