Jquery Select element 2 positions further - another way to .next().next()

后端 未结 2 1774
无人及你
无人及你 2021-01-04 05:40

I am searching for a way how I could select a div element which is not the direct next one to the one which is \"selected\" by a click function.

2条回答
  •  情歌与酒
    2021-01-04 06:25

    It seems that $(this).parent().find('div').eq(2).attr('id') should work.

    UPDATE( Added find('div') )

提交回复
热议问题