привет, у меня есть такая форма
<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-таблица, к которой я применяю dataTables
и тогда у меня есть этот код
$("#ricerca").submit(function(event) {
event.preventDefault();
oTable.fnClearTable();//Empty the entire table of current row information.
oTable.fnDraw();
});
проблема в том, что когда я набираю что-то в своей форме, это как если бы оно автоматически отправлялось как поле поиска dataTables, а затем я могу видеть тот же текст в поле поиска dataTables, я не могу понять, почему