0

I've this code:

In the head:

$(document).ready(function() {
    $("#mostrarPlay").click(function(){
        alert('Hello');
    });
});

and in the body

<a class="btn" id='mostrarPlay' href='#'>Play</a>

It Works when pulse the Run icon in Brackets Editor, but when use Google Chrome, does not work.

Any idea?

Best Regards

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685

1 Answers1

0

Its working fine on my end check the code below:

<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>

  <a class="btn" id='mostrarPlay' href='#'>Play</a>

<script>
$(document).ready(function() {
  $("#mostrarPlay").click(function(){
    alert('Hello');
  });
});
</script>

</body>
<html>

Alerts are showing properly in google chrome. If you have any questions let me know

mkCode
  • 46
  • 1
  • 8