The following line works. When I typed ID 22 in my search field, it shows all rows containing 22, which include 2212, 8922...
$('#patientTable .ID:not(:contains("' + sID + '"))').parent().hide();
Now I want to hide all rows except the one with exact match. I tried the following code. It returns nothing. Please help.
$('#patientTable .ID:not(sID)').parent().hide();