j'ai le code jQuery suivant ...jQuery console.log tout le soumettre dans Firefox 54 ne fonctionne pas
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<script src="js/jquery-1.12.2.min.js"></script>
<script type="text/javascript" src="js/jquery.serializejson.js"></script>
<script type="text/javascript" src="js/jquery.json.min.js"></script>
<script>
$(function(){
console.log("fuuuuu"); // OK
$('#foo').on("submit", function(){
console.log("bar"); // not OK
alert("foo_bar"); // OK
});
}); \t \t \t
\t </script>
</head>
<body>
<form id="foo">
<textarea rows="4" cols="50">
12
3
5</textarea>
<input type="submit">
</form>
</body>
</html>
Est-ce que quelqu'un sait pourquoi console.log();
dans la fonction .on("submit")
doesn Ne travaillez pas dans Firefox? Avec le chrome tout fonctionne bien, seul Firefox devient fou.