tecla enter enviar o form  XML
Índice dos Fóruns » Desenvolvimento Web
Autor Mensagem
santos.levi
JavaTeenager

Membro desde: 19/05/2008 16:27:01
Mensagens: 192
Offline

Bom dia pessoal como faço para que ao teclar na tecla enter o formulario seja enviado.
o usuario preenche os campos com o select que vem do banco de dados, nesse caso estou usando jquery load para carregar depois que ele seleciona tudo ele tem a opção de clicar no botão, se ele clicar no enter apaga todos os dados selecionados, alguem sabe como faço para arrumar isso?
algum exemplo?
[MSN]
Metaleiro
Virtual Machine Man
[Avatar]

Membro desde: 06/07/2006 10:55:54
Mensagens: 669
Localização: São Bernardo do Campo - SP
Offline

tecla enter enviar o form

"Why, Mr. Anderson? Why do you do it? Why get up? Why keep fighting? Do you believe you're fighting for something? For more than your survival? Can you tell me what it is? Do you even know? Is it freedom? Or truth? Perhaps peace? Yes? No? Could it be for love? Illusions, Mr. Anderson. Vagaries of perception. The temporary constructs of a feeble human intellect trying desperately to justify an existence that is without meaning or purpose. And all of them as artificial as the Matrix itself, although only a human mind could invent something as insipid as love. You must be able to see it, Mr. Anderson. You must know it by now. You can?t win. It?s pointless to keep fighting. Why, Mr. Anderson? Why? Why do you persist?"

Neo :
-Because is my choice

alevi
JavaChild
[Avatar]

Membro desde: 27/01/2007 13:58:04
Mensagens: 145
Offline

Olá, meu quase xará - rs!!

Coloque um submit() para seu form no evento do Enter.

Abraços!!

http://www.walkersystems.com.br

SCJP
santos.levi
JavaTeenager

Membro desde: 19/05/2008 16:27:01
Mensagens: 192
Offline

coloquei o SUBMIT no lugar do button mais ainda não funciona quando teclo enter ele recarrega a pagina.
[MSN]
 
Índice dos Fóruns » Desenvolvimento Web
Ir para:   
Powered by JForum 2.1.8 © JForum Team