2
I have two input
in a form, which is actually a score of a game. I want you to send this score with focusout()
when the user fills the two fields of form
.
My form is like this:
<form method="post" id="form1" action="teste2.php">
<label>Time1</label>
<input type="text" name="gols1" id="gols1">
<label>Time2</label>
<input type="text" name="gols2" id="gols2">
</form>
It is a simple form with two inputs and I want to send it without having to put submit button, I want to send when lose focus.
Do not do this, think about your users. S and the guy type something wrong, or just click unintentionally you will already submit the wrong data? And how will you validate if you just filled it out? If it is when the field loses focus the guy can start typing and click off the form atoa and send unintentionally... would not recommend this
– Renato Tavares