Thanks Scott,
I actually modified the code you provided for me a little to create
the desired effect:
previous code:
$("ul ").each(function() {
$(this).find("li:nth-child(4n+2)", "li:nth-child(4n
+3)").addClass("color");
});
modified code:
$('ul').each(function() {
$(this).find("l
thanks Virgil,
Is there a way to create the same effect without specifying the ( eq:
(' ') exact location) or (the content that inside) the list item?
because I might be using up hundreds of unordered lists,
each with a variable number of tags?
original code:
jhbshsbjhs
udjkdnchb
dkdnjkndjk
hbd
Does anyone know how to create the following CSS styling effect using
JQuery:
I have several unordered lists in one webpage:
text 01
text 02
text 03
text 04
text 05
text 06
text 07
text 08
text 01
text 02
text 03
text 04
text 05
text 06
text 07
text 08
I would like to convert my previous co
Thanks (Bi Jing),
You offered the best solution, I tried using all of the code that was
offered, but the following code was the only one that it made it work:
$("li:even:odd, li:odd:odd").addClass("test_css");
I also like the fact that it's a minimal amount code, written in one
line.
Thanks to
- Can someone please help me solve the following issue?
- How can I select and apply a 'background-color' to the following
tags using JQuery?
I've tried the following code, but it does NOT work:
var test_css = {'background':'#000'};
$("ul li:nth-child(3n)").css(test_css);
///Comment:
Can someone help me do the following:
create a function that collects ALL of the form's text field's Values,
along with their corresponding ID, and create an Array like this:
Example: var dataString = (item_01=123, item_01=456, item_01=789)
then take the 'dataString' Array, an
6 matches
Mail list logo