Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript target Objects only inside of parent-div

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29198
    dose
    Member

    Hey,

    how can i target only objects, which are in the same div as the eventTrigger with jQuery?

    Thanks for answers

    #76806
    Rob MacKay
    Participant

    you could try – $("#myid > *") – that should select all the children of the #myid element… if not you can remove the * and select them all individually…

    #76807
    Rob MacKay
    Participant

    or just using my brain:

    $("#myid").children();

    lol

    #76942
    dose
    Member

    I got it this way

    Code:
    $(this).parent().find(‘.featureBoxLine’)
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.