This is the correct current code let searchQuery = 'test'; $('#table').bootstrapTable('refreshOptions', { searchText: searchQuery });