Hello I have a autocomplete event work with press enter. But it's in a form so how disable the press enter event for the form method?
Here my code
<tr> <td> <form action = 'insert.php' method="post" onsubmit="return false;" > <p> <td> <input type="text" name="client7" class = "client" size="12" id ="client7" readonly /> </td> <td> <!-- dꣵt section cobobox tache avec tool tip --> <label title="Select your state"> <select title="Select your state" id="state" name="state"> <?php $stmt->execute(); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo ' <option title="'; echo $row['tacName']; echo '">'; echo $row['tacId']; echo '</option>'."\n"; $task = array(); } ?> </select> </label> <!-- Fin section cobobox tache avec tool tip --> </td> <td> <span id="calculTemps6"> <input id="input7" class= "temps" type="number" size="2" min="0" max="24" value="0"></br> </span> </td> </tr> <input type="text" id="result" readonly="readonly" name="total" /> <input type="submit" value="Terminé" id="end" /> <input type="hidden" name="data" value="<?php echo $date; ?>" /> </p> </form> </td> </td>