Trying to filter a table by search fields

Trying to filter a table by search fields


I am trying to figure out the best way to only show rows that match certain criteria.  In my example the table
displays first name, last name, date won, and game name.  I've tried several examples on the internet and the ui.tablefilter plugin, to no avail.  They all seem to depend on a certain structure in the table.  I am limited in how I structure the html because the html of the table is generated by an asp.net gridview control.  I have gotten the below piece of code to work, but it takes at least 10 seconds to run and I only have 40 records.  I assigned a class of gameName to the data fields in the column that contains the game name.  Can anyone recomend a better & and faster solution for me?   Any help is appreciated!
 

var searchGameName = $.trim($( '#txtSearchGameName' ).val());

$('#gvPromotions tr').each(function()

{$("td .gameName:not(:contains('" + searchGameName + "'))").parent().parent().remove();});