-1
So guys, I’d like to know how to send a form without submit button or without clicking something. I saw on a site a input
where after filling with a value, it from Submit in the form.
I tried to do the same but could not. I want it to send when the form when the number of characters of the input
is greater than five.
Detail: no form
there’s only one input
to enter the value, this way:
<script>
(document).ready(function(){
$('#campo').on('input', function(){
$('#campo').prop('submit', $(this).val().length < 3);
});
});
</script>
<label>Campo:</label>
<input id="campo" type="text" maxlength="3">
...
length > 4
, as it starts from 0... 0,1,2,3,4 (5)– hugocsl
In his case it is
length > 5
because he wants the input to be larger than five.– JeanExtreme002
then all right :D
– hugocsl