jQueryとブートストラップを使用してドロップダウン検索の提案をします。以下はhtmlコードですが、検索フォームに何かを入力してからフォームをクリアすると、図のように2つのフォームが表示されます。なぜですか。jQueryは初めてです。助けてくれてありがとう。
<div class="container">
    <div class="row">
        <div class="span6 offset3">
            <form class="form-search">
                <input type="text" id="month" name="month" class="input-medium search-query">
                <button type="submit" class="btn">Search</button>
                <div id="suggestions">
                </div>
            </form>
        </div>
    </div>
</div>
<script>
jQuery("#month").keyup(function(){
      ajax('search', ['month'], 'suggestions')});
</script>

編集: 私はweb2pyフレームワークを使用しています。これは検索関数のコードです:
def search():
    if not request.vars.month: return dict()
    month_start = request.vars.month
    selected=complete('piracyfinder',month_start)  #this line get the search results
    return DIV(*[DIV(k['title'],
                     _onclick="jQuery('#month').val('%s')" % k['title'],
                     _onmouseover="this.style.backgroundColor='lightblue'",
                     _onmouseout="this.style.backgroundColor='white'"
                     ) for k in selected])