Get Index Of Element Within UL

前端 未结 3 1700
暗喜
暗喜 2020-12-16 17:29

Using jQuery, I\'d like to be able to get the index of the li where the contained anchor tag\'s HREF equals \"#All\". (In this case the correct result would be 3)

         


        
3条回答
提交回复
热议问题