отбор и показ многократных детей в рамках списка определения, использующего затем

i wish to display the 3

when i click on the
and it hides the
which are not children of that particular


Home
Link1
Link1
Link1
Products
Link2
Link2
Link2
Downloads
Link3
Link3
Link3
Services
Link4
Link4
Link4
About Us
Link5
Link5
Link5

but it only shows only one dd when i click on

how do i display the remaining
while hiding those
which arent children of the
i had clicked on here is the code

$("dt").on({
   click:function () {
     $(this).next("dd").slideDown(500).siblings("dd").hide();
   },
})
1
добавлено отредактировано
Просмотры: 1

1 ответы

В вашем подходе есть ошибки.

  1. The mark-up is wrong. You are not supposed to nest the
    inside
    .
  2. When you do so, the browser stacks the nested
    as a sibling of
    .

Предложение:



3
добавлено