Here I send the data but I have to press the button and I want to do it can also be done by 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();
});