1
I would like to create a js function, to check if a select field of my form has been changed. I created the function below to check if an input has been changed and works, but it does not work to select.
var alterado = false;
$(document).ready(function(e) {
$('input').keypress(function(){
alterado = true;
})
});
It worked. Thank you.
– Nodejs