How do I select child elements of any depth using XPath?

后端 未结 4 1408
难免孤独
难免孤独 2021-01-31 01:04

Suppose I have this (simplified):

4条回答
  •  佛祖请我去吃肉
    2021-01-31 01:38

    Also, you can do it with css selectors:

    form#myform input[type='submit']
    

    space beween elements in css elector means searching input[type='submit'] that elements at any depth of parent form#myform element

提交回复
热议问题