how can you clear the value of a #text_filter in a grid

I have a grid that is opened in a popup (a DIV tag) multiple times. The third column in the grid has a #text_filter in it from a attachHeader call for the grid.



If the user types values into the #text_filter the first time the grid id displayed, I would want to remove the value in the #text_filter the second time the grid is displayed.



Can that be done?

You can use
grid.getFilterElement(2).value = “”;

getFilterElement returns reference to the related input element.