Results 1 to 5 of 5

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573

    javascript . :D

    .
    :

    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>
    ID- . href- "a"-.
    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.
    .

  2. #2
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    $('li a[href*=link2]').parent().parent() ?

    , ...
    parents , ul

  3. #3
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    Quote Originally Posted by genn View Post
    $('li a[href*=link2]').parent().parent() ?

    , ...
    parents , ul
    , "Cannot call method parent of null". ...
    , .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  4. #4
    Registered User 's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 653
    Code:
    $('li a[href*=link2]:parent:parent')
    , ..

  5. #5
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759
    jQuery, .html()-select-. !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |