Two conditions using OR in XPATH

前端 未结 4 807
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 13:42

I have a textbox, \'txtSearch\'. I am using it to search people by Last Name. this is my code.

var xmlTempResultSearch = xmlResidentListDisplay.selectNodes(
         


        
4条回答
  •  醉梦人生
    2020-12-01 14:30

    you can use or / and inside [....]

    Example:

    //*[contains('abc') or contains('def') or text()='abcdef']
    

    More info about operators: http://www.w3schools.com/xpath/xpath_operators.asp

提交回复
热议问题