In JQuery hiding a table row based on a predefined columns td value is easy using the following code.
function filterRows(word){
$('.application>tbody>tr')
.show()
.find('td:nth-child(2)').not(':contains("'+word+'")')
.parent()
.hide()
}
However how would I go about showing rows that match td values in more than one column.
Something like the following (which does not work)
function filterRows(word){
$('.application>tbody>tr')
.show()
.find('td:nth-child(2)').not(':contains("'+word+'")')
.find('td:nth-child(3)').not(':contains(30)')
.parent()
.hide()
}
Basically I want to be able to show only rows where my word is passed in "word" is in the second column td and the third column contains "30".
Thanks for any heads up.