onclick - Jquery click function not doing anything -


i'm trying click event working, when user hits button alert displayed. end result, once button working should expand width of div. however, whenever click button nothing happens. won't display alert, print - nothing. ideas?

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>     <script>         $(document).ready(function(){             $("button").click(function(){                 alert("hello");             });         });     </script> 

the way have it, "button" effect <button> tags.

add id button: , add # sign: $("#button").click. if doesn't work have solution...


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -