Filtering table multiple columns

前端 未结 14 1719
闹比i
闹比i 2020-12-09 13:31

I used w3School code for my page and it works fine but it only filters one column, don’t know how create loops but hopping there is easier solution.

    td =         


        
14条回答
  •  情话喂你
    2020-12-09 14:31

    Borrowing code from this post I am able to filter on 2 columns using the || (Or) operator. However, I'd like to be able to filter using the && (And) operator.

    I have been unsuccessful in my multiple attempts. I could use some help.

    
    
    
    
    
    
    
    
    Firstname Lastname Gender Department
    John Doe Male Sales
    Mary Moe Female Service
    July Dooley Female Service
    Anja Ravendale Female Engineering
    Thomas Dubois Male Sales
    Deidre Masters Female Sales
    Sean Franken Male Engineering

提交回复
热议问题