1
I am trying to send a form through a function. It follows the structure.
form with id: nickname
input with id: surname
event keyup in input.
onkeyup="$(this).check()"
Javascript
(function($) {
$.fn.check = function() {
alert('a');
$('#apelido').delay(200).submit();
};
})(jQuery);
$("#apelido").submit(function (event) {
alert('s');
event.preventDefault();
$.ajax({
type: "get",
url: '<?php echo base_url();?>index/check',
data: {id: '425', inputv : 'adm', nameinput: 'apelido'},
success: function (response) {
alert(response);
}
});
});
The first Alert is called, the second not... I no longer know what to do. Any help is welcome.
you cannot have more than one object with the same id as the name itself already says id = identification would be impossible to identify someone with two equal fingerprints, the class may be equal but the id does not
– user28266