I have a jQuery Mobile application (1.0rc1) that looks like a list with a search filter implemented. It looks like this pattern.
Under certain conditions, I dynamically load additional items into the list using an ajax call. When this happens, I want to delete everything that was entered in the search filter, otherwise I get a partially filtered list.
I tried shooting a clear button as follows:
$('.ui-button-clear', $.mobile.activePage).click();
and clear the form as follows:
$("form > input", $.mobile.activePage).val('');
but no one worked. Can someone enlighten me properly to accomplish this?
Greg enslow
source share