Create an endless loop in Jquery

后端 未结 6 1436

The HTML structure is like this

  • some Text
6条回答
  •  孤街浪徒
    2021-01-03 09:58

    jQuery uses CSS-Selectors. What you are doing is trying to get all li-tags inside an innerfade-tag, which obviously doesn't exist.

    You need to select it using its class, just like in CSS:

    $(".innerface li")...
    

提交回复
热议问题