Results 1 to 5 of 5
Thread: javascript . :D
Hybrid View
-
22nd March 2011 23:38 #1
javascript . :D
.

:
ID- . href- "a"-.Code:<ul> <li><a href="link1.php">test</a></li> <li> </li> <li> </li> </ul> <ul> <li><a href="link2.php">test2</a></li> <li> 2</li> <li> 2</li> </ul>
UL, href, each child- .
, :
$('li a[href*=link2]')
a-, "link2" <li>.
().
?
.Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
23rd March 2011 00:05 #2
$('li a[href*=link2]').parent().parent() ?
, ...
parents , ul
-
23rd March 2011 09:58 #3Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
23rd March 2011 00:30 #4, ..Code:
$('li a[href*=link2]:parent:parent')
-
23rd March 2011 01:33 #5




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in