-2

Hi all I have a code that works on JSFiddle but not locally with chrome I'm a bit confused..

<script type="text/javascript" src="jquery-1.12.0.min.js"> </script>
<script type="text/javascript">
$("#A").keyup(function() {
    alert('this actually works');
});

</script>

....

<form action="" method="post">
<input type="text" id="A" size="22px"/> 
<input type="text" id="B" size="22px"/> 

</form>

Is it a problem of JQuery's version ?

Cosmo Sterin
  • 171
  • 8

2 Answers2

0

Just use a CDN if you have internet connection

<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>

or in your case

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
Slaaavo
  • 112
  • 1
  • 11
0

I had to do that :

$(document).on('keyup', '#have', function() {
    alert('key up');
});

jQuery keyup function doesnt work?

Community
  • 1
  • 1
Cosmo Sterin
  • 171
  • 8