[removed] use xpath in jQuery

前端 未结 8 1357
耶瑟儿~
耶瑟儿~ 2020-12-14 10:16

I have, for example, the next XPath query:

//div[span=\"something\"]/parent::div/child::div[@class=\\\"someClass\\\"]

I want to use this XP

8条回答
  •  旧时难觅i
    2020-12-14 10:41

    I'm not sure about the parent::div clause, but without it it should look like this:

    $('div[span="something"] div.someClass');
    

提交回复
热议问题