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
Post a Comment