Vote count: 0
Why am I not getting a console output,Is there some conceptual mistake The HTML page is
!DOCTYPE html>
<html>
<head>
<title>prac 1</title>
<script type="text/javascript" src="jquery-3.1.1.min (1).js"></script>
<script type="text/javascript" src="script2.js"></script>
</head>
<body>
<input type="text" id="just">
<input type="submit" id="submit">
<p></p><p></p>
<div id="div1"></div>
</body>
</html>
Also the script2.js is
$(document).on('ready',check());
function check(){
$('#submit').on('click',function(){
console.log("hi");
})
}
It looks like it requires some more details so I am thankful to everyone,,,
asked 19 secs ago
In the below code Why doesn't the on event Handler fire up?
Aucun commentaire:
Enregistrer un commentaire