See if div contains one or more entered words (Javascript)

后端 未结 2 1535
南旧
南旧 2021-01-24 17:46

I would like to check if any div contains all words entered in an input field. However, currently I am stuck in a situation that as soon as a space is entered, it starts all ove

2条回答
  •  佛祖请我去吃肉
    2021-01-24 18:30

    Need to also check the length of each query word:

    
    
    
    
    
    
    
    

提交回复
热议问题