Hi,
I'm not clear what you are trying to do in the last example.
This may help:
1 - You have mixture of CSS styles and javaScript to control
visibility of your elements. It would be easier just to use
javascript. Put something like this in document ready and remove the
CSS :
$(do
New problem is founded:
I replace list items in example above:
List 3 Item 1
List 3 Item 1
List 3 Item 2
List 3 Item 3
List 3 Item 2
List 3 Item 1
List 3 Item 2
List 3 Item 3
List 3 Item 3
List 3 Item 1
List 3 Item 2
List 3 Item 3
And no
thank you, it work
but now i have another problem:
.selected {
display: list-item;
}
and fideIn() don't work
There for I make some changes and all work:
-- html file:
List 1 Item 1
List 1 Item 2
List 1 Item 3
*
List 3 Item 1
List 3 Item 2
List 3 Item 3
*
Lis
OK - I understand better now what you want to do.
You can use the :eq selector to select an element by index.
With 3 elements per they have index of 0,1 and 2.
So index 1 is item 2
You can select the second within each by specifying "ul" as
the context for the selection.
This should do what yo
Thank you
but some problem exists
List like this:
Item 1
Item 2
Item 3
I need add class "selected" only to one list inem ( first, second,
third, and so ). After your help I shall have:
Item 1
Item 2
Item 3
Does exists some function in jQuery which get only "i" element from
list items?
$('ul
If you want to remove class 'selected' from elements and add it
to others you could use toggleClass.
You canthen use fade out before toggling, and fade in afterwards.
$("li.selected").fadeOut("slow");
$("li").toggleClass("selected");
$("li.selected").fadeIn("slow");
Paul
On Oct 9, 12:53 pm,
6 matches
Mail list logo