1

こんにちは、私はこのようなフォームを持っています

<form id="ricerca" enctype="application/x-www-form-urlencoded" method="post" action=""><table class="inserisci_modifica">
<tr class="visualizza_dati">

<td class="nome_campo"><label for="ragsoc_denominazione">Ragione sociale o denominazione</label></td>
<td class="valore_campo">
<input type="text" name="ragsoc_denominazione" id="ragsoc_denominazione" value="" tabindex="1" /></td>
<td class="nome_campo"><label for="piva">Partita IVA</label></td>
<td class="valore_campo">
<input type="text" name="piva" id="piva" value="" tabindex="9" /></td></tr>

次に、dataTablesを適用するhtmlテーブルがあります

そして、私はこのコードを持っています

$("#ricerca").submit(function(event) {
    event.preventDefault();
    oTable.fnClearTable();//Empty the entire table of current row information.
    oTable.fnDraw();
});

問題は、フォームに何かを入力すると、dataTables の検索フィールドとして自動的に送信されたように見え、dataTables の検索フィールドに同じテキストが表示されることです。理由がわかりません

4

1 に答える 1

1

バグを見つけても気にしないでください。プラグインを使用しています。dataTableExt.oApi.fnSetFilteringDelayで変更する必要がありました。

anControl = $( 'input', _that.fnSettings().aanFeatures.f );

anControl = $( 'table.dataTables input', _that.fnSettings().aanFeatures.f );
于 2011-02-08T09:57:36.607 に答える