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>
然後我已經我申請一個HTML表,其數據表
,然後我有這樣的代碼
$("#ricerca").submit(function(event) {
event.preventDefault();
oTable.fnClearTable();//Empty the entire table of current row information.
oTable.fnDraw();
});
問題是,當我在我的表單中輸入某些東西時,就好像它將自動提交爲dataTables的搜索字段,然後我可以在dataTables搜索字段中看到相同的文本,我無法理解爲什麼