Here I send the data but I must press the button and I want to make it possible when pressing enter:
<input type="text" name="fecha" id="fecha">
<input type="text" name="direccion" id="direccion">
<div id="enviar">Enviar</div>
here they are received in jquery:
$("#enviar").click(function(){
fecha =$("#fecha").val();
direccion =$("#direccion").val();
});
1 Answers